歡迎你

各類文章如有侵犯智慧財產權請來信告知--------607@dlps.tp.edu.tw

预览模式: 普通 | 列表

Coppermine

Coppermine安裝環境
centos5.3
apache2.2.3+php5.1.6+mysql5.0.45

下載Coppermine
官方網址:http://coppermine-gallery.net/

1.在mysql,新增資料庫XXX
2.安裝Image Magick
  yum install imagemagick*
3.將下載的檔案放在伺服器內,資料夾名稱cpg123,修改 albums 和 include 檔案夾的權限為777
4.執行http://localhost/cpg123/install.php  按提示操作

查看更多...

Tags: Coppermine

分类:linux | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3825

OpenNMS安裝----freebsd7.3

Building On FreeBSD7.3 From OpenNMS

環境
install Tomcat6
cd /usr/ports
make search key='tomcat'
找到install位置安裝

install PostgreSQL
參考資料庫安裝


下載OpenNMS
http://www.geeklan.co.uk/files/opennms/opennms-165-freebsd-port.tgz

解壓縮
tar -zxvf opennms-164-freebsd-port.tgz -C /usr/ports/net-mgmt/

要更新ports树,否则你安装会遇到很多麻烦

install opennms
cd /usr/ports/net-mgmt/opennms
make install

安装jdk
安装过程需要准备几个文件,缺的文件,系统会提示你去哪里下载,安装上面的提示下载就是了,比较麻烦。下载了以后把它们放到/usr/ports/distfiles/里面

安裝後的訊息!請跟著步驟作!

Once everything has been built & installed the following message will be shown on your screen:
1st run
${OPENNMSHOME}/bin/runjava -s------------->/usr/local/opennms/bin/runjava -s
Then create
${OPENNMSHOME}/etc/opennms.conf
& add
START_TIMEOUT=0 to it
then run
${OPENNMSHOME}/bin/install -dis
to initialise the DB
edit /etc/rc.conf & add
opennms_enable="YES"
& run
%%PREFIX%%/etc/rc.d/opennms start--------->/usr/local/etc/rc.d/opennms start
you should now be able to login to opennms by pointing your browser to
http://localhost:8980------------------>後來發現應http://localhost:8980/opennms/
u: admin
p: admin


Please make sure the hostname that your system is configured with is either resolvable via dns or locally via /etc/hosts
otherwise you will have issues trying to start OpenNMS.


查看更多...

Tags: OpenNMS

分类:FreeBSd | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 6156

資料庫

一、mysql
      cd /usr/ports/databases/mysql50-server
      make WITH_CHARSET=big5 WITH_XCHARSET=all install clean
      cd /usr/ports/databases/php5-mysql
      make install clean
      
      vi  /etc/rc.conf
      mysql_enable="yes"
      /usr/local/etc/rc.d/mysql-server start
      
      設定sql
      /usr/local/bin/mysql mysql
     Update user SET password=password('XXXXXXXXXX') where user='root';
     FLUSH PRIVILEGES;
    

二、PostgreSQL
      cd /usr/ports/databases/postgresql82-server
      make install clean
      cd /usr/ports/databases/php5-pgsql
      make install clean
      
      vi  /etc/rc.conf
      postgresql_enable="YES"
      ...

查看更多...

Tags: 資料庫

分类:FreeBSd | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3291

人氣影片

人氣影片

Tags: 人氣影片

分类:網站開發 | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 4408

apache2/httpd.conf初步設定

 

/usr/local/etc/apache2/httpd.conf
Timeout 設定連線逾時
Timeout 300
 
KeepAlive 是否使用保持連線
KeepAlive On
 
MaxKeepAliveRequests 最多有幾個保持連線
MaxKeepAliveRequests 200
 
KeepAliveTimeout 保持連線的逾時時間
KeepAliveTimeout 15
 
User Group 設定執行時的使用者及群組
User www
Group www
 
ServerAdmin 設定郵件
ServerAdmin you@example.com
 
ServerName 設定主機名稱
ServerName XXX.XXX.XXX:80
 
DocumentRoot 設定網頁根目錄
DocumentRoot "/usr/local/www/apach22/data"
 
<Directory> </Directory> 設定目錄權限
<Directory />
    AllowOverride None
    order deny,allow
    Deny from all
</Directory>
AllowOverride 設定 .htaccess 中可以使用的項目
Order 設定 Allow 及 Deny 的順序,目錄中設定允許 (Allow) 及拒絕 (Deny) 的規則先後順序
我們先設定了 order 為 Deny, Allow,再設定允許所有連線
 
 
UserDir 設定使用者個人網頁
<IfModule mod_userdir.c>
UserDir public_html
 
UserDir disabled root toor daemon ..... pop www nobody mailnull smmsp
 
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
</IfModule>
 
 
DirectoryIndex 設定預設網頁檔名
DirectoryIndex index.php index.htm index.html index.html.var
 
 
HostnameLookups 設定將客戶端 IP 轉為 hostname
將這個功能設為 On 會造成連線的效率變慢很多
HostnameLookups Off
 
 
ErrorLog 指定錯誤記錄檔位置
ErrorLog /var/log/httpd-error.log
設定 Apache 連線記錄檔的位置
CustomLog /var/log/httpd-access.log combined
 
Alias 設定別名
Alias /mp3/ /home/alex/mp3/
 
ScriptAlias 設定 CGI 目錄
ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
 
分类:FreeBSd | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 9539

freebsd7.0軟體安裝

1、確認 /usr/ports
     沒有的話使用 /stand/sysinstall 來安裝 ports 的目錄
       以 root 執行 /stand/sysinstall
     選擇 Configure 後按 Enter
     選擇 Distributions 後按 Enter
     選擇 ports 後按空白鍵
       選擇 Exit 後按 Enter
     選擇你要從 CDROM 或 FTP 安裝等
       跟著選單照做,最後離開 sysinstall
2、cd /usr/ports/net/cvsup-without-gui
     make install clean
     cp /usr/share/examples/cvsup/ports-supfile /root/
     cvsup -g -L 2 /root/ports-supfile

查看更多...

分类:FreeBSd | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3029

nagios

Apache套件    yum install httpd
Gcc編譯器       yum install gcc
Glibc函式庫    yum install glibc glibc-common
GD函式庫                         yum install gd gd-devel

yum install nagios nagios-plugins-all nrpe

下載Nagios及其Plugins,目前最新穩定版本分別為3.0.6與1.4.13
為了讓Nagios伺服器可以監看遠端Linux主機,需要額外安裝NRPE套件

測試設定檔無誤    
            
nagios -v /etc/nagios/nagios.cfg

啟動 nagios            

service nagios start

查看狀態

nagiostats

Web 界面

vi /etc/httpd/conf.d/nagios.conf

ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"

<Directory "/usr/lib/nagios/cgi">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   order allow,deny
   Allow from all
#  order deny,allow
#  Deny from all
   Allow from 127.0.0.1 192.168.1.0/24
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/nagios/htpasswd
   Require valid-user
</Directory>

Alias /nagios "/usr/share/nagios"

<Directory "/usr/share/nagios&...

查看更多...

Tags: nagios安裝

分类:linux | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 26252

big5------>utf-8

httpd.conf

#AddDefaultCharset Big5
    LanguagePriority zh-TW tw en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN

查看更多...

分类:linux | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2608