目前分類:Linux (4)
- Mar 21 Wed 2007 17:26
啟動Linux VNC Server
- Feb 09 Fri 2007 13:45
MySQL 學習筆記
- Feb 02 Fri 2007 10:32
Squid+中文SARG+NTOP安裝手冊
作業系統:RHEL4-U4 #最小安裝
所需套件:
1. squid-2.5.STABLE6-3.4E.12.i386.rpm #光碟內含
2. httpd-2.0.52-25.ent.i386.rpm #光碟內含
3. gd-2.0.28-4.4E.1.i386.rpm #光碟內含
4. sarg-2.2.1-1.el4.rf.i386.rpm
#http://rpm.pbone.net/index.php3/stat/4/idpl/2902931/com/sarg-2.2-1.el4.rf.i386.rpm.html下載。
5. ntop-3.2-1.el4.rf.i386.rpm
#http://rpm.pbone.net/index.php3/stat/4/idpl/2771125/com/ntop-3.2-1.el4.rf.i386.rpm.html下載。
安裝步驟:
先切換到光碟上或對映資料夾rpms 安裝上述rpm
#rpm –ivh squid-2.5.STABLE6-3.4E.12.i386.rpm
#rpm –ivh httpd-2.0.52-25.ent.i386.rpm –aid #連帶相關套件一起安裝
#rpm –ivh sarg-2.2.1-1.el4.rf.i386.rpm –aid #連帶相關套件一起安裝
設定Squid
#vi /etc/squid/squid.conf
http_port 8080
auth_param basic program /usr/lib/squid/pam_auth #啟用認證機制
acl CONNECT method CONNECT
acl PASSWORD proxy_auth REQUIRED #
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
http_access allow PASSWORD #
cache_mgr xxx@xxx.xxx.xxx #管理者電子郵件信箱
…………..
………..
……
..略
#chkconfig squid on #設定開機自動啟動
#service squid start #啟動Squid服務
設定SARG
設定 sarg.conf
#vi /etc/sarg/sarg.conf