A景點介紹,文字、圖片、錄影帶等。選取部分文字,滑鼠右鍵,google再搜尋。 B路線規劃,交通工具,時間。 |
1.從梧棲國中出發, |
【高雄景點】田寮月世界,泥火山惡地超壯觀地貌,美國CNN評選高雄必看 ... |
3.田寮石頭廟斗姥廟 【高雄】田寮石頭廟(無極慈玄聖天宮)--體驗趨吉避凶結緣美食@ 淳寶爸 |
4.民雄金桔觀光工廠民雄金桔觀光工廠- 觀光工廠-帶嘉回家 |
[root@localhost ]# wget http://pkgs.repoforge.org/sarg/sarg-2.2-1.el5.rf.x86_64.rpm
…中間省略…
Saving to: “sarg-2.2-1.el5.rf.x86_64.rpm”
100%[==================================================>] 323,184 142K/s in 2.2s
2011-08-30 04:27:27 (142 KB/s) - “sarg-2.2-1.el5.rf.x86_64.rpm” saved [323184/323184]
|
[root@localhost ~]# rpm -ivh sarg-2.2-1.el5.rf.x86_64.rpm
warning: sarg-2.2-1.el5.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: Failed dependencies:
gd >= 1.8 is needed by sarg-2.2-1.el5.rf.x86_64
libgd.so.2()(64bit) is needed by sarg-2.2-1.el5.rf.x86_64
|
[root@localhost /]# yum install -y gd //安裝GD套件
Dependencies Resolved
============================================================================================
Package Arch Version Repository Size
============================================================================================
Installing:
gd x86_64 2.0.35-10.el6 base 142 k
Transaction Summary
============================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 142 k
|
[root@localhost ~]# rpm -ivh sarg-2.2-1.el5.rf.x86_64.rpm
warning: sarg-2.2-1.el5.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:sarg ########################################### [100%]
|
[root@localhost html]# vi /etc/httpd/conf.d/sarg.conf
Alias /sarg /var/www/sarg
<Directory /var/www/sarg>
DirectoryIndex index.html
Order deny,allow
# Deny from all //取消限制所有網段不可以連線
Allow from all
# Allow from 127.0.0.1 //停用只允許本機IPv4連線
# Allow from ::1 //停用只允許本機IPv6連線
# Allow from your-workstation.com
</Directory>
|
[root@localhost ~]# vi /etc/sarg/sarg.conf
# sarg.conf
#
# TAG: language
…中間省略…
#language English //預設為英文,若有中文語言包可以切換語言,若要使用其他語言,要將#移除。
…中間省略…
# TAG: access_log file
# Where is the access.log file
# sarg -l file
#
#access_log /usr/local/squid/var/logs/access.log
access_log /var/log/squid/access.log //分析記錄檔位置
…中間省略…
# TAG: title
# Especify the title for html page.
#
#title "Squid User Access Reports" //標題名稱
…中間省略…
# TAG: temporary_dir
# Temporary directory name for work files
# sarg -w dir
#
#temporary_dir /tmp //分析資料暫存位置
…中間省略…
# TAG: output_dir
# The reports will be saved in that directory
# sarg -o dir
#
#output_dir /var/www/html/squid-reports
output_dir /var/www/sarg/ONE-SHOT //分析資料產出位置
…中間省略…
# TAG: output_email
# Email address to send the reports. If you use this tag, no html reports will be generated.
# sarg -e email
#
#output_email none
…中間省略…
# TAG: charset name
# ISO 8859 is a full series of 10 standardized multilingual single-byte coded (8bit)
# graphic character sets for writing in alphabetic languages
# You can use the following charsets:
# Latin1 - West European
# Latin2 - East European
# Latin3 - South European
# Latin4 - North European
# Cyrillic
# Arabic
# Greek
# Hebrew
# Latin5 - Turkish
# Latin6
# Windows-1251
# Koi8-r
#
#charset Latin1 //網頁編碼
|
[root@localhost ~]# service httpd restart //重新啟動Apache
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
|
[root@localhost ~]# sarg -o /var/www/sarg/ONE-SHOT //1次報表
SARG: Records in file: 1357, reading: 100.00%
[root@localhost ~]# sarg -o /var/www/sarg/daily //日報表
SARG: Records in file: 1357, reading: 100.00%
[root@localhost ~]# sarg -o /var/www/sarg/weekly //周報表
SARG: Records in file: 1357, reading: 100.00%
[root@localhost ~]# sarg -o /var/www/sarg/monthly //月報表
SARG: Records in file: 1357, reading: 100.00%
|
A景點介紹,文字、圖片、錄影帶等。選取部分文字,滑鼠右鍵,google再搜尋。 B路線規劃,交通工具,時間。 |
1.從梧棲國中出發, |
2.田寮月世界【高雄景點】田寮月世界,泥火山惡地超壯觀地貌,美國CNN評選高雄必看 ... |
3.田寮石頭廟斗姥廟 【高雄】田寮石頭廟(無極慈玄聖天宮)--體驗趨吉避凶結緣美食@ 淳寶爸 |
4.民雄金桔觀光工廠民雄金桔觀光工廠- 觀光工廠-帶嘉回家 |
# This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> |