{"id":203,"date":"2013-01-29T00:46:13","date_gmt":"2013-01-28T16:46:13","guid":{"rendered":"http:\/\/wp.8r9.net\/?p=203"},"modified":"2022-11-06T20:15:26","modified_gmt":"2022-11-06T12:15:26","slug":"%e4%bd%bf%e7%94%a8awstats%e8%87%aa%e5%8a%a8%e5%88%86%e6%9e%90nginx%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/www.iur.me\/?p=203","title":{"rendered":"\u4f7f\u7528awstats\u81ea\u52a8\u5206\u6790Nginx\u65e5\u5fd7"},"content":{"rendered":"<p>\u4f7f\u7528awstats\u53ef\u4ee5\u5206\u6790apache\u65e5\u5fd7\uff0c\u540c\u6837\u4e5f\u53ef\u4ee5\u5206\u6790nginx\u65e5\u5fd7\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u81ea\u52a8\u5b9a\u65f6\u5207\u5272nginx\u7684\u8bbf\u95ee\u65e5\u5fd7\uff0c\u5e76\u4f7f\u7528awstats\u6765\u5b9a\u65f6\u5206\u6790nginx\u7684\u65e5\u5fd7\u7684\u5b9e\u73b0\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u524d\u8a00<\/strong><\/p>\n<p>\u672c\u6587\u4e2d\u4f7f\u7528\u7684\u662fawstats 7.0\u7248\u672c\u3002 \u6b64\u7248\u672c\u589e\u52a0\u4e86\u5bf9win7\u7684\u652f\u6301\u4ee5\u53ca\u4e00\u4e9b\u66f4\u65b0\u7684\u7279\u6027\u3002<\/p>\n<blockquote><p>New features\/improvements: &#8211; Detect Windows 7. &#8211; Can format numbers according to language. &#8211; More mime types. &#8211; Added geoip_asn_maxmind plugin. &#8211; Geoip Maxmind city plugin have now override file capabilities to complete missing entries in geoip maxmind database. &#8211; Added graphgooglechartapi to use online Google chart api to build graph. &#8211; Can show map of country to report countries when using graphgooglechartapi. &#8211; Part of codes was change to use more functions and have a cleaner code. &#8211; Added parameter to ignore missing log files when merging for a site on multiple servers where a single server may not have created a log for a given day. &#8211; Update robots database. &#8211; Added Download tracking where certain mime types are defined as downloads and HTTP status 206 is tracked as download continuation<\/p><\/blockquote>\n<p>Awstats \u662f\u5728 SourceForge \u4e0a\u53d1\u5c55\u5f88\u5feb\u7684\u4e00\u4e2a\u57fa\u4e8e Perl \u7684 WEB \u65e5\u5fd7\u5206\u6790\u5de5\u5177\uff0c\u4e00\u4e2a\u5145\u5206\u7684\u65e5\u5fd7\u5206\u6790\u8ba9 Awstats \u663e\u793a\u60a8\u4e0b\u5217\u8d44\u6599:<\/p>\n<ul>\n<li>\u8bbf\u95ee\u6b21\u6570\u3001\u72ec\u7279\u8bbf\u5ba2\u4eba\u6570,<\/li>\n<li>\u8bbf\u95ee\u65f6\u95f4\u548c\u4e0a\u6b21\u8bbf\u95ee,<\/li>\n<li>\u4f7f\u7528\u8005\u8ba4\u8bc1\u3001\u6700\u8fd1\u8ba4\u8bc1\u7684\u8bbf\u95ee,<\/li>\n<li>\u6bcf\u5468\u7684\u9ad8\u5cf0\u65f6\u95f4(\u9875\u6570,\u70b9\u51fb\u7387,\u6bcf\u5c0f\u65f6\u548c\u4e00\u5468\u7684\u5343\u5b57\u8282),<\/li>\n<li>\u57df\u540d\/\u56fd\u5bb6\u7684\u4e3b\u673a\u8bbf\u5ba2(\u9875\u6570,\u70b9\u51fb\u7387,\u5b57\u8282,269\u57df\u540d\/\u56fd\u5bb6\u68c0\u6d4b, geoip \u68c0\u6d4b),<\/li>\n<li>\u4e3b\u673a\u540d\u5355,\u6700\u8fd1\u8bbf\u95ee\u548c\u672a\u89e3\u6790\u7684 IP \u5730\u5740\u540d\u5355<\/li>\n<li>\u5927\u591a\u6570\u770b\u8fc7\u7684\u8fdb\u51fa\u9875\u9762,<\/li>\n<li>\u6863\u6848\u7c7b\u578b,<\/li>\n<li>\u7f51\u7ad9\u538b\u7f29\u7edf\u8ba1\u8868(mod_gzip \u6216\u8005 mod_deflate),<\/li>\n<li>\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf (\u6bcf\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u7684\u9875\u6570,\u70b9\u51fb\u7387 ,\u5b57\u8282, 35 OS detected),<\/li>\n<li>\u4f7f\u7528\u7684\u6d4f\u89c8\u5668,<\/li>\n<li>\u673a\u5668\u4eba\u8bbf\u95ee(\u68c0\u6d4b 319 \u4e2a\u673a\u5668\u4eba),<\/li>\n<li>\u8815\u866b\u653b\u51fb (5 \u4e2a\u8815\u866b\u5bb6\u65cf),<\/li>\n<li>\u641c\u7d22\u5f15\u64ce\uff0c\u5229\u7528\u5173\u952e\u8bcd\u68c0\u7d22\u627e\u5230\u4f60\u7684\u5730\u5740,<\/li>\n<li>HTTP \u534f\u8bae\u9519\u8bef(\u6700\u8fd1\u67e5\u9605\u6ca1\u6709\u627e\u5230\u7684\u9875\u9762),<\/li>\n<li>\u5176\u4ed6\u57fa\u4e8e URL \u7684\u4e2a\u6027\u62a5\u5bfc,\u94fe\u63a5\u53c2\u6570, \u6d89\u53ca\u7efc\u5408\u884c\u9500\u9886\u57df\u76ee\u7684.<\/li>\n<li>\u8d35\u7f51\u7ad9\u88ab\u52a0\u5165\u201d\u6700\u559c\u7231\u7684\u4e66\u7b7e\u201d.\u6b21\u6570.<\/li>\n<li>\u5c4f\u5e55\u5927\u5c0f(\u9700\u8981\u5728\u7d22\u5f15\u9875\u8865\u5145\u4e00\u4e9b HTML \u6807\u7b7e).<\/li>\n<li>\u6d4f\u89c8\u5668\u7684\u652f\u6301\u6bd4\u4f8b: Java, Flash, RealG2 reader, Quicktime reader, WMA reader, PDF reader.<\/li>\n<li>\u8d1f\u8f7d\u5e73\u8861\u670d\u52a1\u5668\u6bd4\u7387\u96c6\u7fa4\u62a5\u544a.<\/li>\n<\/ul>\n<p>Awstats \u7684\u8fd0\u884c\u662f\u9700\u8981 PERL \u73af\u5883\u7684\u652f\u6301\uff0c\u4ece awstats \u7684\u6587\u6863\u6765\u770b\uff0c\u5b83\u5bf9 Apache HTTP Server\u00a0 \u7684\u652f\u6301\u662f\u975e\u5e38\u5b8c\u7f8e\u7684\uff0c\u800c\u5f53\u6211\u4eec\u628a Web \u670d\u52a1\u5668\u6362\u6210 Nginx \u540e\uff0c\u8981\u8fd0\u884c awstats \u53d8\u5f97\u5f88\u9ebb\u70e6\u3002\u9996\u5148 Nginx \u672c\u8eab\u5bf9 Perl\u00a0 \u7684\u652f\u6301\u662f\u6bd4\u8f83\u5f31\u7684\uff0c\u751a\u81f3\u5b98\u65b9\u4e5f\u4e0d\u5efa\u8bae\u4f7f\u7528\uff1b\u53e6\u5916\u5728\u65e5\u5fd7\u683c\u5f0f\u4e0a\u6709\u9700\u8981\u4fee\u6539\u540e\u624d\u80fd\u8fd0\u884c\u3002<\/p>\n<p><strong>\u65e5\u5fd7\u5207\u5272<\/strong><\/p>\n<p>\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u901a\u8fc7\u8ba9 awstats \u5bf9\u65e5\u5fd7\u7edf\u8ba1\u7684\u7ed3\u679c\u751f\u6210\u9759\u6001\u9875\u9762\uff0c\u7136\u540e\u901a\u8fc7 Nginx \u8f93\u51fa\u4ee5\u8fbe\u5230\u7edf\u8ba1 Nginx \u8bbf\u95ee\u65e5\u5fd7\u7684\u6548\u679c\uff0c\u5176\u4e2d\u8fd8\u5305\u62ec\u5982\u4f55\u8ba9 Nginx \u81ea\u52a8\u5207\u5272\u65e5\u5fd7\u6587\u4ef6\u3002\u5bf9\u4e8enginx\u7684\u65e5\u5fd7\uff0c\u6211\u7684\u505a\u6cd5\u662f\u6309\u5929\u5207\u5272\u3002\u7136\u540e\u5b58\u5165\u65e5\u671f\u5f62\u5f0f\u7684\u76ee\u5f55\u4e2d\u5e76\u538b\u7f29\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cnginx\u7684\u65e5\u5fd7\u5e94\u8be5\u9075\u5faa\u4ee5\u4e0b\u683c\u5f0f\uff0c\u624d\u53ef\u4ee5\u88abawstats\u8bc6\u522b\uff0c\u5982\u5b9a\u4e49\u65e5\u5fd7\u683c\u5f0f<\/p>\n<div>\n<div id=\"highlighter_746924\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<\/td>\n<td>\n<div>\n<div>log_format\u00a0 main\u00a0 &#8216;$remote_addr &#8211; $remote_user [$time_local] &#8220;$request&#8221; &#8216;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8216;$status $body_bytes_sent &#8220;$http_referer&#8221; &#8216;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8216;&#8221;$http_user_agent&#8221; &#8220;$http_x_forwarded_for&#8221;&#8216;;<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4f7f\u7528\u65e5\u5fd7\u683c\u5f0f<\/p>\n<div>\n<div id=\"highlighter_490758\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>access_log\u00a0 \/home\/wwwroot\/logs\/access.log\u00a0 access;<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u8fd9\u91cc\u9700\u8981\u6709\u4e00\u4e2a\u5c0f\u6280\u5de7\u7684\u63d0\u793a\uff1a\u628alog_format\u8fd9\u6bb5\u4ee3\u7801\u653e\u5728\u4f60nginx\u7684http\u7684\u5b9a\u4e49\u6bb5\u4e2d\uff0c\u53ef\u4ee5\u5728\u4e0b\u9762\u7684\u6bcf\u4e00\u4e2aserver\u4e2d\u5f15\u7528\u6b64\u683c\u5f0f\u3002\u4e0d\u5fc5\u5728\u6bcf\u4e2aserver\u91cc\u9762\u90fd\u53bb\u5b9a\u4e49\u683c\u5f0f\u3002 \u672c\u6587\u4e0d\u8bb2\u5982\u4f55\u5b89\u88c5nginx\uff0c\u7a0d\u540e\u6211\u5c06\u53d1\u5e03\u6211\u7684lnmp\u4e00\u952e\u5b89\u88c5\u5305(linux nginx mysql php)\u3002\u5168\u7f16\u8bd1+\u4f18\u5316\u81ea\u52a8\u5316\u5b89\u88c5\uff0c\u4f7f\u7528php-fpm\u8fd0\u884cphp\u7684fastcgi\u8fdb\u7a0b\u3002<\/p>\n<p>\u6211\u5199\u4e86\u4e00\u4e2a\u5b9a\u65f6\u5207\u5272\u65e5\u5fd7\u7684\u811a\u672c\u3002\u6bcf\u59290:00\u5f00\u59cb\u6267\u884c\uff0c\u5207\u5272\u6628\u5929\u7684\u65e5\u5fd7\uff08\u4ea4\u7531awstats\u5206\u6790\uff09\uff0c\u538b\u7f29\u524d\u5929\u7684\u65e5\u5fd7\uff08\u538b\u7f29\u65e5\u5fd7\u53ef\u51cf\u5c0f\u5b58\u50a8\u7a7a\u95f4\uff0c\u4e3a\u9632 \u6b62awstats\u6ca1\u6709\u5206\u6790\u5b8c\u5c31\u88ab\u538b\u7f29\uff0c\u6240\u4ee5\u53ea\u538b\u7f29\u524d\u5929\u7684\u65e5\u5fd7\uff09\u3002\u5982\u679c\u4f60\u7684nginx\u548clog\u6587\u4ef6\u653e\u7684\u8def\u5f84\u548c\u6211\u7684\u4e0d\u4e00\u6837\uff0c\u8bf7\u5bf9\u5e94\u4fee\u6539\u3002<\/p>\n<div>\n<div id=\"highlighter_495643\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>vim cut_log.sh<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<div>\n<div id=\"highlighter_39817\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<\/td>\n<td>#!\/bin\/bash<br \/>\n# This script run at 00:05<br \/>\n# cut yesterday log and gzip the day before yesterday log files.<br \/>\n# yesterday logs to awstats<br \/>\n# The Nginx logs path<br \/>\nlogs_path=&#8221;\/home\/wwwlogs\/&#8221;<br \/>\ndate_dir=${logs_path}$(date -d &#8220;yesterday&#8221; +&#8221;%Y&#8221;)\/$(date -d &#8220;yesterday&#8221; +&#8221;%m&#8221;)\/$(date -d &#8220;yesterday&#8221; +&#8221;%d&#8221;)\/<br \/>\ngzip_date_dir=${logs_path}$(date -d &#8220;-2 day&#8221; +&#8221;%Y&#8221;)\/$(date -d &#8220;-2 day&#8221; +&#8221;%m&#8221;)\/$(date -d &#8220;-2 day&#8221; +&#8221;%d&#8221;)\/<br \/>\nmkdir -p $date_dir<br \/>\nmv ${logs_path}*access.log $date_dir<br \/>\n\/usr\/local\/nginx\/sbin\/nginx -s reopen<br \/>\n\/usr\/bin\/gzip ${gzip_date_dir}*.log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u8ba9\u5b83\u6bcf\u59290\u65f65\u5206\u8d77\u5f00\u59cb\u8fdb\u884c\uff0c\u6267\u884ccrontab -e\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801\u518d\u6309:wq\u4fdd\u5b58\u9000\u51fa\uff0c\u8fd9\u91cc\u6211\u5c06\u6b64\u811a\u672c\u653e\u5728\/root\/\u4e0b\uff0c\u5207\u8bb0\u8981\u7ed9\u5b83\u53ef\u6267\u884c\u6743\u9650\uff08chmod +x cut_log.sh\uff09.<\/p>\n<div>\n<div id=\"highlighter_587852\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>05 00 * * * \/bin\/bash \/root\/cut_log.sh<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u6bcf\u5929\u51cc\u91cc\u81ea\u52a8\u5207\u5272\u6628\u5929\u7684\u65e5\u5fd7\u5230\u4ee5\u65e5\u671f\u4e3a\u76ee\u5f55\u7ed3\u6784\u7684\u76ee\u5f55\u4e2d\u3002\u53ef\u4ee5\u7559\u5b58\u4ee5\u540e\u67e5\u8be2\u3002\u7559\u7740\u6628\u5929\u7684\u65e5\u5fd7\u4ea4\u7ed9\u4e0b\u9762\u7684awstats\u6765\u5206\u6790\uff0c\u538b\u7f29\u524d\u5929\u7684\u65e5\u5fd7\uff08\u524d\u5929\u7684\u5df2\u7ecf\u88ab\u5206\u6790\u8fc7\u4e86\uff09\u3002<\/p>\n<p><strong>\u5b89\u88c5\u548c\u914d\u7f6eawstats<\/strong><\/p>\n<p>\u4e0b\u8f7d\u6700\u65b0\u7684 awstats\uff0c\u6211\u4f7f\u7528\u7684\u662f\u8fc4\u4eca\u4e3a\u6b62\u6700\u65b0\u76847.0\u7248\u672c<\/p>\n<p>\u5b89\u88c5\u5230\/usr\/local\u4e0b\uff0c\u8fd9\u4e2a\u8def\u5f84\u662f\u4e60\u60ef\u3002\u5927\u90e8\u5206\u4eba\u4fdd\u6301\u7684\u826f\u597d\u4e60\u60ef\u3002<\/p>\n<div>\n<div id=\"highlighter_182734\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<\/td>\n<td>\n<div>\n<div>wget http:\/\/ncu.dl.sourceforge.net\/project\/awstats\/AWStats\/7.1.1\/awstats-7.1.1.zip<\/div>\n<div>unzip awstats-7.1.1.zip<\/div>\n<div>mv awstats-7.1.1 \/usr\/local\/awstats<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4fee\u6539\u6743\u9650\uff0cwget\u4e0b\u8f7d\u4e0b\u6765\u7684\u5305\u4e2d\u6743\u9650\u662f\u975eroot\u7684\uff0c\u8d4b\u4e88\u8fc7\u6743\u9650\u4e4b\u540e\uff0c.pl\u7684\u6587\u4ef6\u4e5f\u5c31\u53ef\u4ee5\u8fd0\u884c\u4e86\u3002<\/p>\n<div>\n<div id=\"highlighter_950771\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<\/td>\n<td>\n<div>\n<div>chown -R root:root \/usr\/local\/awstats<\/div>\n<div>chmod -R =rwX \/usr\/local\/awstats<\/div>\n<div>chmod +x \/usr\/local\/awstats\/tools\/*.pl<\/div>\n<div>chmod +x \/usr\/local\/awstats\/wwwroot\/cgi-bin\/*.pl<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u6267\u884c tools \u76ee\u5f55\u4e2d\u7684 awstats_configure.pl \u914d\u7f6e\u5411\u5bfc\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7edf\u8ba1<\/p>\n<p>\u8fd0\u884c(\u6ce8\u610f\u8fd9\u91cc\u8981\u5728\u5f53\u524d\u76ee\u5f55\u8fd0\u884c\u3002\u5426\u5219\u4f1a\u6709\u4e00\u4e9b\u5173\u4e8e\u6807\u51c6\u76ee\u5f55\u7684\u63d0\u793a\u3002)<\/p>\n<div>\n<div id=\"highlighter_98837\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>cd \/usr\/local\/awstats\/tools<\/div>\n<div>.\/awstats_configure.pl<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5c06\u4f1a\u6709\u5982\u4e0b\u4e00\u4e9b\u63d0\u793a\uff1a<\/p>\n<div>\n<div id=\"highlighter_366755\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<\/td>\n<td>\n<div>\n<div>&#8212;&#8211;&gt; Running OS detected: Linux, BSD or Unix<\/div>\n<div>&#8212;&#8211;&gt; Check for web server install<\/div>\n<div>Enter full config file path of your Web server.<\/div>\n<div>Example: \/etc\/httpd\/httpd.conf<\/div>\n<div>Example: \/usr\/local\/apache2\/conf\/httpd.conf<\/div>\n<div>Example: c:\\Program files\\apache group\\apache\\conf\\httpd.conf<\/div>\n<div>Config file path (&#8216;none&#8217; to skip web server setup):<\/div>\n<div>&gt;none #\u8fd9\u91cc\u6dfbnone\u5e76\u56de\u8f66\uff0c\u56e0\u4e3a\u6211\u4eec\u6ca1\u6709\u4f7f\u7528apache<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u56de\u8f66\u4e4b\u540e\u4e0b\u4e00\u4e2a\u9009\u9879<\/p>\n<div>\n<div id=\"highlighter_766408\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<\/td>\n<td>\n<div>\n<div>Your web server config file(s) could not be found.<\/div>\n<div>You will need to setup your web server manually to declare AWStats<\/div>\n<div>script as a CGI, if you want to build reports dynamically.<\/div>\n<div>See AWStats setup documentation (file docs\/index.html)<\/div>\n<div>&#8212;&#8211;&gt; Update model config file &#8216;\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.model.conf&#8217;<\/div>\n<div>\u00a0File awstats.model.conf updated.<\/div>\n<div>&#8212;&#8211;&gt; Need to create a new config file ?<\/div>\n<div>Do you want me to build a new AWStats config\/profile<\/div>\n<div>file (required if first install) [y\/N] ?<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>#\u8fd9\u91cc\u9009Y\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<div>\n<div id=\"highlighter_814234\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div>&#8212;&#8211;&gt; Define config file name to create<\/div>\n<div>What is the name of your web site or profile analysis ?<\/div>\n<div>Example: www.mysite.com<\/div>\n<div>Example: demo<\/div>\n<div>Your web site, virtual server or profile name:<\/div>\n<div>&gt;akii.org\u00a0 #\u8fd9\u91cc\u8f93\u5165\u4f60\u8981\u5206\u6790\u7684\u57df\u540d\uff0c\u6216\u662f\u968f\u4fbf\u4e00\u4e2a\u4f60\u6613\u8bb0\u7684\u914d\u7f6e\u540d\u5e76\u56de\u8f66<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u8981\u5b9a\u4e49\u4f60\u7684\u914d\u7f6e\u6587\u4ef6\u5b58\u653e\u7684\u8def\u5f84\uff0c\u53ef\u7528\u9ed8\u8ba4<\/p>\n<div>\n<div id=\"highlighter_846783\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<\/td>\n<td>\n<div>\n<div>&#8212;&#8211;&gt; Define config file path<\/div>\n<div>In which directory do you plan to store your config file(s) ?<\/div>\n<div>Default: \/etc\/awstats<\/div>\n<div>Directory path to store config file(s) (Enter for default):<\/div>\n<div>&gt; #\u76f4\u63a5\u56de\u8f66\uff0c\u4f7f\u7528\u9ed8\u8ba4\u8def\u5f84\/etc\/awstats<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u56de\u8f66\u540e\u7684\u63d0\u793a<\/p>\n<div>\n<div id=\"highlighter_396024\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>19<\/div>\n<\/td>\n<td>\n<div>\n<div>&#8212;&#8211;&gt; Create config file &#8216;\/etc\/awstats\/awstats.akii.org.conf&#8217;<\/div>\n<div>\u00a0Config file \/etc\/awstats\/awstats.akii.org.conf created.<\/div>\n<div>&#8212;&#8211;&gt; Add update process inside a scheduler<\/div>\n<div>Sorry, configure.pl does not support automatic add to cron yet.<\/div>\n<div>You can do it manually by adding the following command to your cron:<\/div>\n<div>\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl -update -config=akii.org<\/div>\n<div>Or if you have several config files and prefer having only one command:<\/div>\n<div>\/usr\/local\/awstats\/tools\/awstats_updateall.pl now<\/div>\n<div>Press ENTER to continue&#8230; #\u6309\u56de\u8f66\u7ee7\u7eed<\/div>\n<div>A SIMPLE config file has been created: \/etc\/awstats\/awstats.akii.org.conf<\/div>\n<div>You should have a look inside to check and change manually main parameters.<\/div>\n<div>You can then manually update your statistics for &#8216;yuyuanchun.com&#8217; with command:<\/div>\n<div>&gt; perl awstats.pl -update -config=akii.org<\/div>\n<div>You can also build static report pages for &#8216;akii.org&#8217; with command:<\/div>\n<div>&gt; perl awstats.pl -output=pagetype -config=akii.org<\/div>\n<div>Press ENTER to finish&#8230; #\u56de\u8f66\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u7684\u521b\u5efa<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5b8c\u6210\u914d\u7f6e\u6587\u4ef6\u7684\u521b\u5efa\u540e\uff0c\u6211\u4eec\u8fd8\u8981\u4fee\u6539\u4e00\u4e0b\u3002\u56e0\u4e3a\u6211\u4eec\u662f\u6309\u5929\u5207\u5272\u7684\u65e5\u5fd7\uff0c\u5207\u5272\u5b8c\u6210\u540e\u4ea4\u7531awstats\u53bb\u5206\u6790\u3002\u5e76\u4e0d\u662f\u8ba9awstats\u53bb\u5206\u65f6\u6b63\u5728\u65f6\u65f6\u00a0 \u589e\u957f\u7684\u4e5f\u5c31\u662f\u6b63\u5728\u88ab\u5199\u5165\u7684\u65e5\u5fd7\uff0c\u8fd9\u6837\u7684\u597d\u5904\u662f\u4e0d\u81f3\u4e8e\u9057\u6f0f\u6570\u636e\uff0c\u5e76\u4e14\u5206\u6790\u5df2\u7ecf\u5207\u5272\u5b8c\u6210\u7684\u65e5\u5fd7\uff0c\u66f4\u4e0d\u7528\u62c5\u5fc3\u4f1a\u6709\u51b2\u7a81\u3002\u574f\u5904\u662f\u6211\u4e00\u5929\u5207\u5272\u4e00\u6b21\u65e5\u5fd7\uff0c\u4f60\u8981\u7b49\u7b2c\u4e8c\u5929 \u624d\u80fd\u770b\u6628\u5929\u7684\u4e00\u4e9b\u8be6\u7ec6\u6570\u636e\u3002<\/p>\n<p>\u4fee\u6539\/etc\/awstats\/awstats.akii.org.conf\uff0c\u6267\u884c\uff1a<\/p>\n<div>\n<div id=\"highlighter_299784\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>vi \/etc\/awstats\/awstats.akii.org.conf<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u627e\u5230<\/p>\n<div>\n<div id=\"highlighter_340421\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>LogFile=&#8221;\/var\/log\/httpd\/mylog.log&#8221;<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4fee\u6539\u4e3a\uff1a<\/p>\n<div>\n<div id=\"highlighter_779435\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>LogFile=&#8221;\/home\/wwwlogs\/%YYYY-24\/%MM-24\/%DD-24\/access.log&#8221;<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5982\u679c\u4f60\u7684\u65e5\u5fd7\u8def\u5f84\u548c\u6211\u7684\u4e0d\u4e00\u6837\uff0c\u8bf7\u4fee\u6539\u6210\u5bf9\u5e94\u7684\u65e5\u5fd7\u6587\u4ef6\u540d\u3002\u4ee5\u4e0a\u7684\u5b8c\u6574\u8def\u5f84\u662f\u5207\u5272\u540e\u4fdd\u5b58\u7684nginx\u65e5\u5fd7\u6587\u4ef6\u3002\u5176\u4e2d%YYYY-24\/%MM-24\/%DD-24\u8868\u793a\u5e74\u6708\u65e5\u90fd\u51cf\u53bb24\u5c0f\u65f6\uff0c\u4e5f\u5c31\u662f\u6628\u5929\u7684\u65e5\u5fd7\u76ee\u5f55\u3002\u4fee\u6539\u5b8c\u6210\u540e\u6309:wq\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u53ef\u4ee5\u6d4b\u8bd5\u4e00\u4e0bawstats\u5206\u6790\u65e5\u5fd7\u4e86\uff08\u524d\u63d0\u662f\u4f60\u5df2\u7ecf\u6709\u4e86\u5207\u5272\u8fc7\u7684\u65e5\u5fd7\uff0c\u6ca1\u6709\u7684\u8bdd\u53ef\u4ee5\u5148\u9000\u884c\u4e00\u4e0b\u5207\u5272\u65e5\u5fd7\u7684\u811a\u672c\/root\/cut_log.sh\uff09<\/p>\n<p>\u9996\u5148\uff0c\u8fd8\u8981\u521b\u5efa\u4e00\u4e2aawstats\u7528\u4e8e\u8bb0\u5f55\u6570\u636e\u7684\u76ee\u5f55<\/p>\n<div>\n<div id=\"highlighter_58466\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>mkdir -p \/var\/lib\/awstats<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u8fd0\u884cawstats\u7684wwwroot\u76ee\u5f55\u4e2d\u7684awatsts.pl\u6765\u6d4b\u8bd5\u4e00\u4e0b<\/p>\n<div>\n<div id=\"highlighter_82685\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl -update -config=akii.org<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4f60\u5982\u679c\u770b\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u63d0\u793a\u5c31\u8bf4\u660e\u914d\u7f6e\u6587\u4ef6\u90fd\u6b63\u786e\u4e86\u3002<\/p>\n<div>\n<div id=\"highlighter_557721\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<\/td>\n<td>\n<div>\n<div>Create\/Update database for config &#8220;\/etc\/awstats\/awstats.akii.org.conf&#8221; by AWStats version 7.0 (build 1.964)<\/div>\n<div>From data in log file &#8220;\/home\/www\/logs\/2010\/07\/24\/akii.org_access.log&#8221;&#8230;<\/div>\n<div>Phase 1 : First bypass old records, searching new record&#8230;<\/div>\n<div>Direct access after last parsed record (after line 43260)<\/div>\n<div>Jumped lines in file: 43260<\/div>\n<div>\u00a0Found 43260 already parsed records.<\/div>\n<div>Parsed lines in file: 0<\/div>\n<div>\u00a0Found 0 dropped records,<\/div>\n<div>\u00a0Found 0 comments,<\/div>\n<div>\u00a0Found 0 blank records,<\/div>\n<div>\u00a0Found 0 corrupted records,<\/div>\n<div>\u00a0Found 0 old records,<\/div>\n<div>\u00a0Found 0 new qualified records<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7edf\u8ba1\u5206\u6790\u5b8c\u6210\u540e\uff0c\u7ed3\u679c\u8fd8\u5728 Awstats \u7684\u6570\u636e\u5e93\u4e2d\u3002\u5728 Apache \u4e0a\uff0c\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00 Perl \u7a0b\u5e8f\u7684\u7f51\u9875\u67e5\u770b\u7edf\u8ba1\u3002\u00a0 \u4f46\u672c\u6587\u5f00\u59cb\u65f6\u5df2\u7ecf\u63d0\u5230\uff0cNginx \u5bf9 Perl \u652f\u6301\u5e76\u4e0d\u597d\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u6362\u4e2a\u65b9\u6cd5\uff0c\u5229\u7528 awstats\u00a0 \u7684\u5de5\u5177\u5c06\u7edf\u8ba1\u7684\u7ed3\u679c\u751f\u6210\u9759\u6001\u6587\u4ef6\uff0c\u5177\u4f53\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\u5728 webroot \u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u3002\u4f8b\uff1a\/home\/wwwroot\/awstats<\/li>\n<li>\u5199\u4e00\u4e2a\u811a\u672c\uff0c\u5b9a\u671f\u6267\u884c\u8ba9 Awstats \u628a\u9759\u6001\u9875\u9762\u751f\u6210\u5230\u8be5\u76ee\u5f55\u4e2d<\/li>\n<\/ul>\n<p>\u5148\u751f\u6210\u5b58\u653eawstats\u751f\u6210\u7684\u9759\u6001\u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u6211\u8fd9\u91cc\u7528\u7684\u662f\/home\/www\/awstats<\/p>\n<div>\n<div id=\"highlighter_539276\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>mkdir -p \/home\/wwwroot\/awstats<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u6211\u4eec\u6765\u5199\u4e00\u4e2a\u811a\u672c<\/p>\n<div>\n<div id=\"highlighter_610640\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>vim \/root\/awstats.sh<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<div>\n<div id=\"highlighter_738971\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<\/td>\n<td>\n<div>\n<div>#!\/bin\/bash<\/div>\n<div>mkdir -p \/home\/wwwroot\/awstats\/akii.org<\/div>\n<div>\/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl -update\u00a0 \\<\/div>\n<div>-config=akii.org -lang=cn -dir=\/home\/wwwroot\/awstats\/akii.org\u00a0 \\<\/div>\n<div>-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u7684\u5177\u4f53\u610f\u601d\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl Awstats \u9759\u6001\u9875\u9762\u751f\u6210\u5de5\u5177<\/li>\n<li>-update -config=akii.org \u66f4\u65b0\u914d\u7f6e\u9879<\/li>\n<li>-lang=cn \u8bed\u8a00\u4e3a\u4e2d\u6587<\/li>\n<li>-dir=\/home\/www\/awstats \u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u76ee\u5f55<\/li>\n<li>-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl Awstats \u65e5\u5fd7\u66f4\u65b0\u7a0b\u5e8f\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p>\u7136\u540e\u5728\u4f60\u7684nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5728\u4f60\u60f3\u8981\u5b89\u7f6eawstats\u6216\u9ed8\u8ba4\u7684ip\u6216\u57df\u540d\u7684server\u6bb5\u4e2d\uff0c\u52a0\u5165\u5173\u4e8eawstats\u548cicon\u7684\u4e24\u4e2a\u76ee\u5f55\u914d\u7f6e\u3002<\/p>\n<p>\u5982\u4e00\u4e2a\u5b8c\u6574\u6848\u4f8b\uff1a<\/p>\n<div>\n<div id=\"highlighter_56730\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>19<\/div>\n<\/td>\n<td>\n<div>\n<div>server {<\/div>\n<div>listen\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80;<\/div>\n<div>server_name\u00a0 localhost;<\/div>\n<div>root \/home\/www;<\/div>\n<div>index index.html;<\/div>\n<div>location ~ ^\/awstats\/ {\u00a0\u00a0\u00a0\u00a0 # awstats\u00a0 \u9759\u6001\u9875\u9762\u76ee\u5f55<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0root\u00a0\u00a0 \/home\/wwwroot\/awstats;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0autoindex on; #\u53ef\u4ee5\u76ee\u5f55\u6d4f\u89c8\u4f60\u7684\u591a\u4e2a\u57df\u540d\u7684\u76ee\u5f55\u7528\u4e8e\u5206\u6790<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0index\u00a0 index.html;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0access_log off;<\/div>\n<div>}<\/div>\n<div>location ~ ^\/icon\/ {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u56fe\u6807\u76ee\u5f55<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0root\u00a0\u00a0 \/usr\/local\/awstats\/wwwroot;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0index\u00a0 index.html;<\/div>\n<div>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0access_log off;<\/div>\n<div>}<\/div>\n<div>}<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u53ef\u4ee5\u6d4b\u8bd5\u4e00\u4e0b\u811a\u672c\u662f\u5426\u53ef\u4ee5\u6b63\u786e\u6267\u884c<\/p>\n<p>\u8fd8\u662f\u522b\u5fd8\u4e86\u7ed9\u5b83\u53ef\u6267\u884c\u6743\u9650<\/p>\n<div>\n<div id=\"highlighter_659621\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>chmod +x \/root\/awstats.sh<\/div>\n<div>\/root\/awstats.sh<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5982\u679c\u4f60\u770b\u5230\u5b83\u751f\u6210\u4e86\u4e00\u5806\u7f51\u9875\uff0c\u90a3\u5c31\u8bf4\u660e\u6210\u529f\u4e86\u3002<\/p>\n<p>\u8f93\u51fa\u4fe1\u606f\u90e8\u5206\u4f8b\u5982<\/p>\n<div>\n<div id=\"highlighter_975343\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div>Launch update process : &#8220;\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl&#8221; -config=akii.org -update -configdir=<\/div>\n<div>&#8230;&#8230;<\/div>\n<div>Build keywords page: &#8220;\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl&#8221; -config=akii.org -staticlinks -lang=cn -output=keywords<\/div>\n<div>Build errors404 page: &#8220;\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl&#8221; -config=akii.org -staticlinks -lang=cn -output=errors404<\/div>\n<div>20 files built.<\/div>\n<div>Main HTML page is &#8216;awstats.akii.org.html&#8217;.<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u53ef\u4ee5\u628a\u5b83\u52a0\u5165\u81ea\u52a8\u8fd0\u884c\u4e86\u3002<\/p>\n<p><strong>\u914d\u7f6eawstats\u811a\u672c\u81ea\u52a8\u8fd0\u884c<\/strong><\/p>\n<div>\n<div id=\"highlighter_368379\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>crontab -e<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u52a0\u5165<\/p>\n<div>\n<div id=\"highlighter_333893\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>00 1 * * * \/root\/awstats.sh<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u6bcf\u5929\u5728\u51cc\u6668\u81ea\u52a8\u5206\u5272\u65e5\u5fd7\uff0c\u5e76\u4e14\u5f00\u59cb\u81ea\u52a8\u7528awstats\u5206\u6790nginx\u7684\u65e5\u5fd7\u4e86\u3002<\/p>\n<p><strong>\u8ba4\u8bc1\u8bbf\u95ee<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u7ed9\u4f60\u7684awstats\u52a0\u4e0a\u8bbf\u95ee\u5bc6\u7801\uff0c\u53ef\u4ee5\u89c1\u8fd9\u91cc\uff1a<a title=\"Nginx\u4e3a\u76ee\u5f55\u6216\u7f51\u7ad9\u52a0\u4e0a\u5bc6\u7801\u8ba4\u8bc1\" href=\"http:\/\/blog.y6ol.com\/nginx%E4%B8%BA%E7%9B%AE%E5%BD%95%E6%88%96%E7%BD%91%E7%AB%99%E5%8A%A0%E4%B8%8A%E5%AF%86%E7%A0%81%E8%AE%A4%E8%AF%81\/\" target=\"_blank\" rel=\"noopener\">nginx\u4e3a\u76ee\u5f55\u6216\u7f51\u7ad9\u52a0\u4e0a\u5bc6\u7801\u8ba4\u8bc1<\/a><\/p>\n<p>\u539f\u521b\u6587\u7ae0\uff0c\u5199\u7684\u8f9b\u82e6\u3002\u5982\u679c\u4f60\u8981\u8f6c\u8f7d\uff0c\u8bf7\u4fdd\u7559\u51fa\u5904\u53ca\u94fe\u63a5\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599:<a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/index.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/index.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/baike.baidu.com\/view\/228748.htm\">http:\/\/baike.baidu.com\/view\/228748.htm<\/a><br \/>\n<a title=\"\u4f7f\u7528awstats\u81ea\u52a8\u5206\u6790Nginx\u65e5\u5fd7\" href=\"http:\/\/blog.chinaunix.net\/uid-14007440-id-3148979.html\">http:\/\/blog.chinaunix.net\/uid-14007440-id-3148979.html<\/a><br \/>\n<a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/index.html\">http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/index.html<\/a><br \/>\n<a href=\"http:\/\/wenku.baidu.com\/view\/6f440ada5022aaea998f0fff.html\">http:\/\/wenku.baidu.com\/view\/6f440ada5022aaea998f0fff.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528awstats\u53ef\u4ee5\u5206\u6790apache\u65e5\u5fd7\uff0c\u540c\u6837\u4e5f\u53ef\u4ee5\u5206\u6790nginx\u65e5\u5fd7\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u81ea\u52a8\u5b9a\u65f6\u5207\u5272nginx [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[11,39,82],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-it","tag-awstats","tag-nginx","tag-82"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":1,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}