{"id":695,"date":"2010-03-20T19:49:24","date_gmt":"2010-03-20T11:49:24","guid":{"rendered":"http:\/\/pony.xin\/?p=695"},"modified":"2021-03-12T20:57:06","modified_gmt":"2021-03-12T12:57:06","slug":"%e8%bd%ac%e5%b8%96%e4%bd%bf%e7%94%a8-awstats-%e5%88%86%e6%9e%90-nginx-%e7%9a%84%e8%ae%bf%e9%97%ae%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/lnmp.ivan.xin\/?p=695","title":{"rendered":"[\u8f6c\u5e16]\u4f7f\u7528 awstats \u5206\u6790 Nginx \u7684\u8bbf\u95ee\u65e5\u5fd7"},"content":{"rendered":"<p><a name=\"1.\u524d\u8a00\"><span>\u524d\u8a00<\/span><\/a><\/p>\n<p>\u5728\u6211\u7684\u4e0a\u4e00\u7bc7\u6587\u7ae0\u300a<a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/web\/wa-lo-nginx\/\" target=\"_blank\" rel=\"noopener\">\u4f7f\u7528 Nginx<br \/>\n\u63d0\u5347\u7f51\u7ad9\u8bbf\u95ee\u901f\u5ea6<\/a>\u300b\u4e2d\u4ecb\u7ecd\u4e86 Nginx \u8fd9\u4e2a HTTP<br \/>\n\u670d\u52a1\u5668\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7\u5b83\u6765\u52a0\u901f\u7f51\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\u3002\u5728\u5b9e\u9645\u7684\u7f51\u7ad9\u8fd0\u8425\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4e86\u89e3\u5230\u7f51\u7ad9\u7684\u8bbf\u95ee\u60c5\u51b5\uff0c\u4f8b\u5982\u6bcf\u5929\u6709\u591a\u5c11 IP \u5728\u8bbf\u95ee\u3001PV<br \/>\n\u6570\u662f\u591a\u5c11\u3001\u54ea\u4e2a URL<br \/>\n\u8bbf\u95ee\u91cf\u6700\u5927\u3001\u7528\u6237\u4f7f\u7528\u6700\u591a\u7684\u6d4f\u89c8\u5668\u662f\u54ea\u4e2a\u3001\u90fd\u662f\u901a\u8fc7\u4ec0\u4e48\u65b9\u5f0f\u77e5\u9053\u8fd9\u4e2a\u7f51\u7ad9\u7684\u4ee5\u53ca\u6709\u591a\u5c11\u7528\u6237\u8bbf\u95ee\u51fa\u9519\u7b49\u7b49\uff0c\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u4fe1\u606f\u6765\u63d0\u9ad8\u7528\u6237\u7684\u4f53\u9a8c\uff0c\u4ece\u800c\u6539\u5584\u7f51\u7ad9<br \/>\n\u7684\u8d28\u91cf\u3002\u4e00\u822c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u514d\u8d39\u7684\u8bbf\u95ee\u7edf\u8ba1\u7f51\u7ad9\u4f8b\u5982 Google Analytics<br \/>\n\u6765\u6216\u8005\u8fd9\u4e9b\u4fe1\u606f\u3002\u4f46\u4e0d\u8db3\u4e4b\u5904\u662f\u8fd9\u7c7b\u7f51\u7ad9\u53ea\u80fd\u5bf9\u9875\u9762\u8fdb\u884c\u5206\u6790\uff0c\u4e0d\u5305\u62ec\u9759\u6001\u6587\u4ef6\uff1b\u53e6\u5916\u53ef\u80fd\u6709\u5f88\u591a\u7684\u7ad9\u957f\u4e0d\u613f\u610f\u4f7f\u7528\u8fd9\u7c7b\u5de5\u5177\u6765\u66b4\u9732\u81ea\u5df1\u7684\u6570\u636e\uff0c\u79cd\u79cd\u7684\u8fd9\u4e9b\u56e0\u7d20\u4f7f<br \/>\n\u7ad9\u957f\u5e0c\u671b\u81ea\u5df1\u6765\u5206\u6790\u8bbf\u95ee\u65e5\u5fd7\u3002\u800c awstats \u5c31\u53ef\u4ee5\u6ee1\u8db3\u6240\u6709\u7684\u8fd9\u4e9b\u9700\u6c42\u3002<\/p>\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<br \/>\nAwstats \u663e\u793a\u60a8\u4e0b\u5217\u8d44\u6599:<\/p>\n<ul>\n<li>\n\u8bbf\u95ee\u6b21\u6570\u3001\u72ec\u7279\u8bbf\u5ba2\u4eba\u6570,<\/li>\n<li>\n\u8bbf\u95ee\u65f6\u95f4\u548c\u4e0a\u6b21\u8bbf\u95ee,<\/li>\n<li>\n\u4f7f\u7528\u8005\u8ba4\u8bc1\u3001\u6700\u8fd1\u8ba4\u8bc1\u7684\u8bbf\u95ee,<\/li>\n<li>\n\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>\n\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>\n\u4e3b\u673a\u540d\u5355,\u6700\u8fd1\u8bbf\u95ee\u548c\u672a\u89e3\u6790\u7684 IP \u5730\u5740\u540d\u5355<\/li>\n<li>\n\u5927\u591a\u6570\u770b\u8fc7\u7684\u8fdb\u51fa\u9875\u9762,<\/li>\n<li>\n\u6863\u6848\u7c7b\u578b,<\/li>\n<li>\n\u7f51\u7ad9\u538b\u7f29\u7edf\u8ba1\u8868(mod_gzip \u6216\u8005 mod_deflate),<\/li>\n<li>\n\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>\n\u4f7f\u7528\u7684\u6d4f\u89c8\u5668,<\/li>\n<li>\n\u673a\u5668\u4eba\u8bbf\u95ee(\u68c0\u6d4b 319 \u4e2a\u673a\u5668\u4eba),<\/li>\n<li>\n\u8815\u866b\u653b\u51fb (5 \u4e2a\u8815\u866b\u5bb6\u65cf),<\/li>\n<li>\n\u641c\u7d22\u5f15\u64ce\uff0c\u5229\u7528\u5173\u952e\u8bcd\u68c0\u7d22\u627e\u5230\u4f60\u7684\u5730\u5740,<\/li>\n<li>\nHTTP \u534f\u8bae\u9519\u8bef(\u6700\u8fd1\u67e5\u9605\u6ca1\u6709\u627e\u5230\u7684\u9875\u9762),<\/li>\n<li>\n\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>\n\u8d35\u7f51\u7ad9\u88ab\u52a0\u5165\"\u6700\u559c\u7231\u7684\u4e66\u7b7e\".\u6b21\u6570.<\/li>\n<li>\n\u5c4f\u5e55\u5927\u5c0f(\u9700\u8981\u5728\u7d22\u5f15\u9875\u8865\u5145\u4e00\u4e9b HTML \u6807\u7b7e).<\/li>\n<li>\n\u6d4f\u89c8\u5668\u7684\u652f\u6301\u6bd4\u4f8b:  Java, Flash, RealG2 reader, Quicktime reader, WMA reader, PDF<br \/>\n reader.<\/li>\n<li>\n\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<br \/>\n\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<br \/>\n\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>\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<br \/>\n\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<\/p>\n<p><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" alt=\"\" height=\"1\" width=\"100%\" \/><br \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" border=\"0\" height=\"6\" width=\"8\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr align=\"right\">\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" alt=\"\" height=\"4\" width=\"100%\" \/><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/icons\/u_bold.gif\" alt=\"\" border=\"0\" height=\"16\" width=\"16\" \/><\/td>\n<td align=\"right\" valign=\"top\"><a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/#main\" target=\"_blank\" rel=\"noopener\"><b>\u56de\u9875\u9996<\/b><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a name=\"2.\u914d\u7f6e Nginx \u81ea\u52a8\u5207\u5272\u65e5\u5fd7\"><span>\u914d\u7f6e Nginx \u81ea\u52a8\u5207\u5272\u65e5\u5fd7<\/span><\/a><\/p>\n<p>\u8ddf Apache HTTP Server\uff08\u4ee5\u4e0b\u79f0 Apache\uff09\u4e0d\u540c\u7684\u662f\uff0cApache<br \/>\n\u53ef\u4ee5\u5c06\u65e5\u5fd7\u8f93\u51fa\u901a\u8fc7\u7ba1\u9053\u7684\u65b9\u5f0f\u8fdb\u884c\u91cd\u65b0\u5b9a\u5411\uff0c\u4f9d\u6b64\u6765\u8fdb\u884c\u81ea\u52a8\u7684\u65e5\u5fd7\u5207\u5272\u3002Nginx \u5728\u73b0\u4eca\u7248\u672c\u4e0a\u8fd8\u6ca1\u80fd\u8ddf Apache<br \/>\n\u4e00\u6837\uff0c\u901a\u8fc7%YY\u7b49\u53c2\u6570\u6309\u65e5\u671f\u5206\u6279\u521b\u5efa\u65e5\u5fd7\uff0c\u4f46\u662f\u901a\u8fc7\u7ed9 nginx \u8fdb\u7a0b\u53d1\u9001\u4e00\u4e2a\u7279\u5b9a\u7684\u4fe1\u53f7\uff0c\u53ef\u4ee5\u4f7f nginx<br \/>\n\u91cd\u65b0\u751f\u6210\u65e5\u5fd7\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u5b9a\u671f\u6267\u884c\u4e00\u4e2a Shell \u811a\u672c\u6765\u5207\u6362\u65e5\u5fd7\uff0c\u91cd\u65b0\u547d\u540d\u6216\u8f6c\u79fb\uff0c\u5177\u4f53\u7684\u811a\u672c\u5982\u4e0b\uff1a<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre># mv  \/opt\/nginx\/logs\/access.log \/opt\/nginx\/logs\/access_`date +%Y%m%d`.log<br># killall \u2013s USR1 nginx\t#\u4f7f\u7528USR1\u53c2\u6570\u901a\u77e5Nginx\u8fdb\u7a0b\u5207\u6362\u65e5\u5fd7\u6587\u4ef6<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\u5c06\u4ee5\u4e0a\u811a\u672c\u5185\u5bb9\u4fdd\u5b58\u4e3a\u6587\u4ef6\u540d\u4e3a logcron.sh \u5b58\u5230\u81ea\u5b9a\u7684\u76ee\u5f55\u4e2d\uff0c\u4f8b\u5982 \/opt\/nginx\/sbin\/logcron.sh<\/p>\n<p>\u4f7f\u7528 Crontab \u8ba9\u8be5\u811a\u672c\u7a0b\u5e8f\u5728\u6bcf\u5929\u665a\u4e0a 11 \u70b9 59 \u5206\u81ea\u52a8\u6267\u884c\uff0c\u5373\u53ef\u505a\u5230\u6309\u5929\u521b\u5efa\u65e5\u5fd7\u3002<\/p>\n<p><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" alt=\"\" height=\"1\" width=\"100%\" \/><br \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" border=\"0\" height=\"6\" width=\"8\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr align=\"right\">\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" alt=\"\" height=\"4\" width=\"100%\" \/><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/icons\/u_bold.gif\" alt=\"\" border=\"0\" height=\"16\" width=\"16\" \/><\/td>\n<td align=\"right\" valign=\"top\"><a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/#main\" target=\"_blank\" rel=\"noopener\"><b>\u56de\u9875\u9996<\/b><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a name=\"3.\u5b89\u88c5\u548c\u914d\u7f6e Awstats\"><span>\u5b89\u88c5\u548c\u914d\u7f6e Awstats<\/span><\/a><\/p>\n<p>\u5b89\u88c5\u4e4b\u524d\uff0c\u5fc5\u987b\u786e\u8ba4\u4f60\u7684\u670d\u52a1\u5668\u4e0a Perl \u7684\u73af\u5883\u5df2\u7ecf\u5c31\u7eea\u3002<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u73af\u5883 Perl \u7248\u672c\u7684\u547d\u4ee4\u662f perl \u2013version<\/p>\n<p>\u6211\u4eec\u8fd8\u9700\u8981\u5bf9 Nginx \u7684\u65e5\u5fd7\u683c\u5f0f\u505a\u4e2a\u5c0f\u4fee\u6539\uff0c\u4e0d\u7136 awstats \u5c06\u65e0\u6cd5\u8fdb\u884c\u7edf\u8ba1\u3002<\/p>\n<p>\u4f8b\u5b50\u5982\u4e0b(\u52a0\u7c97\u90e8\u5206)\uff1a <\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre># vi \/opt\/nginx\/conf\/nginx.conf<br><br>server {<br>listen       80;<br>server_name  localhost;<br><br>location ~ ^\/web\/ {<br>root   \/data\/web;<br>index  index.html;<br>error_log off;<br>charset gb2312;<br>}<br><br><span>log_format  new_log<\/span>\t#\u683c\u5f0f\u4ee3\u79f0 (\u6ce8\u610f\uff0c\u5982\u679c\u6709\u591a\u4e2a\u865a\u62df\u4e3b\u673a\uff0c\u4ee3\u79f0\u4e0d\u80fd\u4e00\u6837)<br>'$remote_addr - $remote_user [$time_local] $request '<br>        '\"$status\" $body_bytes_sent \"$http_referer\" '<br>        '\"$http_user_agent\" \"$http_x_forwarded_for\"';<br><span>        access_log  logs\/access.log new_log;\t#<\/span><span>\u65e5\u5fd7\u751f\u6210\u8def\u5f84<\/span><br><br>}<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 awstats \u5305\uff0c\u4e0b\u8f7d\u5730\u5740\u8bf7\u89c1\u6587\u7ae0\u6700\u540e\u7684\u53c2\u8003\u8d44\u6599\u3002\u628a\u4e0b\u8f7d\u540e\u7684 tar \u5305\u89e3\u538b\u5230\u4efb\u610f\u76ee\u5f55\u4e2d\uff0c\u4f8b:<br \/>\n\/usr\/local\/awstats \u3002\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\u3002<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/sourceforge.net\/projects\/awstats\/<\/p>\n<p>\u8fd0\u884c\u547d\u4ee4\uff1a# perl awstats_configure.pl<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>-----&gt; Check for web server install<br><br>Enter full config file path of your Web server.<br>Example: \/etc\/httpd\/httpd.conf<br>Example: \/usr\/local\/apache2\/conf\/httpd.conf<br>Example: c:\\Program files\\apache group\\apache\\conf\\httpd.conf<br>Config file path ('none' to skip web server setup):<br>#&gt; none  #\u56e0\u4e3a\u6211\u4eec\u8fd9\u91cc\u7528\u7684\u662f Nginx\uff0c\u6240\u4ee5\u5199 none\uff0c\u8df3\u8fc7\u3002<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\u56de\u8f66<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>Your web server config file(s) could not be found.<br>You will need to setup your web server manually to declare AWStats<br>script as a CGI, if you want to build reports dynamically.<br>See AWStats setup documentation (file docs\/index.html)<br><br>-----&gt; Update model config file '\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.model.conf'<br>  File awstats.model.conf updated.<br><br>-----&gt; Need to create a new config file ?<br>Do you want me to build a new AWStats config\/profile<br>file (required if first install) [y\/N] ?<br>#&gt; y\t#y \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7edf\u8ba1\u914d\u7f6e<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\u56de\u8f66<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>-----&gt; Define config file name to create<br>What is the name of your web site or profile analysis ?<br>Example: www.mysite.com<br>Example: demo<br>Your web site, virtual server or profile name:<br>#&gt; www.moabc.net\t\t#\u7edf\u8ba1\u7f51\u7ad9\u7684\u57df\u540d \u4f8b\uff1a<a href=\"http:\/\/www.moabc.net\/\" target=\"_blank\" rel=\"noopener\"><br><code>www.moabc.net<\/code><\/a><br><br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u56de\u8f66<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>-----&gt; Define config file path<br>In which directory do you plan to store your config file(s) ?<br>Default: \/etc\/awstats<br>Directory path to store config file(s) (Enter for default):<br>#&gt; \t<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u4f7f\u7528\u9ed8\u8ba4\u76f4\u63a5\u56de\u8f66\uff0c\u63a5\u4e0b\u6765\u4fbf\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u7684\u63d0\u793a<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>----&gt; Add update process inside a scheduler<br>Sorry, configure.pl does not support automatic add to cron yet.<br>You can do it manually by adding the following command to your cron:<br>\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl -update -config=www.moabc.net  <br>               #\u56de\u5934\u628a\u8be5\u547d\u4ee4\u586b\u5165crontab \u6309\u6307\u5b9a\u65f6\u95f4\u6267\u884c<br>Or if you have several config files and prefer having only one command:<br>\/usr\/local\/awstats\/tools\/awstats_updateall.pl now<br>Press ENTER to continue...\t\t\u56de\u8f66\u7ee7\u7eed<br><br>A SIMPLE config file has been created: \/etc\/awstats\/awstats.www.moabc.net.conf  <br>            #\u65b0\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u7684\u8def\u5f84<br>You should have a look inside to check and change manually main parameters.<br>You can then manually update your statistics for 'www.moabc.net' with command:<br>&gt; perl awstats.pl -update -config=www.moabc.net<br>You can also build static report pages for 'www.moabc.net' with command:<br>&gt; perl awstats.pl -output=pagetype -config=www.moabc.net<br><br>Press ENTER to finish...\t\t<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\n\u56de\u8f66\u5b8c\u6210\u5411\u5bfc\uff0c\u63a5\u4e0b\u6765\u4fee\u6539 www.moabc.net \u7684\u7edf\u8ba1\u914d\u7f6e\n<\/p>\n<p>\n#vi \/etc\/awstats\/awstats.www.moabc.net.conf\n<\/p>\n<p>\n\u627e\u5230\u7edf\u8ba1\u7684\u65e5\u5fd7\u6587\u4ef6\u7684\u8def\u5f84\n<\/p>\n<p>\nLogFile=\"\/var\/log\/httpd\/mylog.log\"\n<\/p>\n<p>\n\u6539\u4e3a\n<\/p>\n<p>\nLogFile=\"\/opt\/nginx\/logs\/access_%YYYY-0%MM-0%DD-0.log\n<\/p>\n<p>\n\u5bf9\u5e94\u4e0a\u8fb9 Nginx \u65e5\u5fd7\u5207\u5272\u7a0b\u5e8f\u7684\u6240\u751f\u6210\u7684\u76ee\u5f55\u5b58\u653e\u7ed3\u6784\uff0c\u8981\u6ce8\u610f Awstats \u7684\u5e74\u6708\u65e5\u683c\u5f0f\u7684\u8ddf Nginx<br \/>\n\u7684\u5199\u6cd5\u6709\u6240\u4e0d\u540c\u3002\u6211\u4eec\u73b0\u5728\u6267\u884c\u7edf\u8ba1\u7684\u987a\u5e8f\u662f\uff1a<\/p>\n<p>\nNginx \u4ea7\u751f\u65e5\u5fd7 \u2013&gt; \u65e5\u5fd7\u5207\u5272 \u2013&gt; Nginx \u7ee7\u7eed\u4ea7\u751f\u65e5\u5fd7 \u2013&gt; \u53e6\u5b58\u5207\u5272\u65e5\u5fd7 \u2013&gt; \u4ea4\u7531Awstats\u7edf\u8ba1<br \/>\n\u2013&gt; \u751f\u6210\u7ed3\u679c\n<\/p>\n<p>\n\u5728\u672c\u6587\u4e2d Awstats<br \/>\n\u6240\u7edf\u8ba1\u7684\u65e5\u5fd7\uff0c\u662f\u5df2\u5207\u4e0b\u6765\u7684\u90a3\u90e8\u5206\u3002\u4e5f\u80fd\u8c03\u8f6c\u987a\u5e8f\uff0c\u5148\u7edf\u8ba1\u5b8c\u4e86\u518d\u5207\u3002\u4e0d\u8fc7\u8fd9\u6bd4\u8f83\u5bb9\u6613\u9020\u6210\u7edf\u8ba1\u7684\u9057\u6f0f\u3002\u914d\u7f6e\u4fee\u6539\u5b8c\u6210\u540e\uff0c\u4fdd\u5b58\u9000\u51fa\u3002\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u8bd5\u4e00\u4e0b\u624b<br \/>\n\u52a8\u6267\u884c\u3002\n<\/p>\n<ol>\n<li>\u5148\u6267\u884c\u65e5\u5fd7\u5207\u5272\u811a\u672c logcron.sh \u628a Nginx \u7684\u65e5\u5fd7\u5207\u4e0b\u6765\u3002<\/li>\n<li>\u7136\u540e\u6267\u884c Awstats \u65e5\u5fd7\u66f4\u65b0\u7a0b\u5e8f\u5f00\u59cb\u7edf\u8ba1\u5206\u6790\u3002<\/li>\n<\/ol>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre># \/opt\/nginx\/sbin\/logcron.sh<br># \/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl -update -config=www.moabc.net<br><br>Create\/Update database for config \"\/etc\/awstats\/awstats.www.moabc.net.conf\"<br>        by AWStats version 6.7 (build 1.892)<br>From data in log file \"\/opt\/nginx\/logs\/access_20080804.log\"...<br>Phase 1 : First bypass old records, searching new record...<br>Direct access after last parsed record (after line 450421)<br>Jumped lines in file: 450421<br> Found 450421 already parsed records.<br>Parsed lines in file: 120<br> Found 0 dropped records,<br> Found 0 corrupted records,<br> Found 0 old records,<br> Found 120 new qualified records.<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\n\u770b\u5230\u4ee5\u4e0a\u663e\u793a\uff0c\u8bc1\u660e\u65e5\u5fd7\u5207\u5272\u548c Awstats \u90fd\u5df2\u7ecf\u8fd0\u884c\u65e0\u8bef\u4e86\u3002\u7edf\u8ba1\u5206\u6790\u5b8c\u6210\u540e\uff0c\u7ed3\u679c\u8fd8\u5728 Awstats \u7684\u6570\u636e\u5e93\u4e2d\u3002\u5728 Apache<br \/>\n\u4e0a\uff0c\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00 Perl \u7a0b\u5e8f\u7684\u7f51\u9875\u67e5\u770b\u7edf\u8ba1\u3002<br \/>\n\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<br \/>\n\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\/data\/webroot\/awstats<\/li>\n<li>\u7136\u540e\u8ba9 Awstats \u628a\u9759\u6001\u9875\u9762\u751f\u6210\u5230\u8be5\u76ee\u5f55\u4e2d<\/li>\n<\/ul>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre># mkdir  \/data\/webroot\/awstats<br><br># \/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl -update  \\ <br>-config=www.moabc.net -lang=cn -dir=\/data\/admin_web\/awstats  \\<br>-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\n\u4e0a\u8ff0\u547d\u4ee4\u7684\u5177\u4f53\u610f\u601d\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl\tAwstats<br \/>\n\u9759\u6001\u9875\u9762\u751f\u6210\u5de5\u5177<\/li>\n<li>-update -config=www.moabc.net\t\t\t\u66f4\u65b0\u914d\u7f6e\u9879<\/li>\n<li>-lang=cn\t\t\t\t\u8bed\u8a00\u4e3a\u4e2d\u6587<\/li>\n<li>-dir=\/data\/admin_web\/awstats\t\u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u76ee\u5f55<\/li>\n<li>-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\tAwstats<br \/>\n\u65e5\u5fd7\u66f4\u65b0\u7a0b\u5e8f\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p>\n\u63a5\u4e0b\u6765\uff0c\u53ea\u9700\u5728nginx.conf \u4e2d\uff0c\u628a\u8be5\u76ee\u5f55\u914d\u7f6e\u4e0a\u53bb\u5373\u53ef\u3002<br \/>\n\u4f8b\u5b50\u5982\u4e0b:(\u52a0\u7c97\u90e8\u5206):<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>server {<br>listen       80;<br>server_name  localhost;<br><br>location ~ ^\/web\/ {<br>root   \/data\/web;<br>index  index.html;<br>error_log off;<br>charset gb2312;<br>}<br><br>location ~ ^\/awstats\/ {\t    # html \u9759\u6001\u9875\u9762\u76ee\u5f55<br>        root   \/data\/webroot\/awstats;<br>        index  index.html;<br>        access_log off;<br>        error_log off;<br>        charset gb2312; #\u6700\u597d\u628a\u9ed8\u8ba4\u7f16\u7801\u6539\u6210 gb2312\u907f\u514d\u6d4f\u89c8\u5668\u56e0\u81ea\u52a8\u7f16\u7801\u51fa\u73b0\u4e71\u7801\u7684\u60c5\u51b5<br>}<br><br>location ~ ^\/icon\/ {             # \u56fe\u6807\u76ee\u5f55<br>        root   \/usr\/local\/awstats\/wwwroot;<br>        index  index.html;<br>        access_log off;<br>        error_log off;<br>        charset gb2312;<br>        }<br>}<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\n\u7528\u6d4f\u89c8\u5668\u67e5\u770b\u5230\u7edf\u8ba1\u7684\u8be6\u7ec6\u7ed3\u679c http:\/\/youhostname\/awstats\/awstats.www.moabc.net.html\n<\/p>\n<p>\n\u81f3\u6b64\uff0c\u4f7f\u7528 awstats \u5df2\u80fd\u5b8c\u5168\u652f\u6301 Nginx \u7684\u65e5\u5fd7\u7edf\u8ba1\u3002\n<\/p>\n<p><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" alt=\"\" height=\"1\" width=\"100%\" \/><br \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" border=\"0\" height=\"6\" width=\"8\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr align=\"right\">\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" alt=\"\" height=\"4\" width=\"100%\" \/><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/icons\/u_bold.gif\" alt=\"\" border=\"0\" height=\"16\" width=\"16\" \/><\/td>\n<td align=\"right\" valign=\"top\"><a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/#main\" target=\"_blank\" rel=\"noopener\"><b>\u56de\u9875\u9996<\/b><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a name=\"4.\u914d\u7f6e Awstats \u81ea\u52a8\u8fd0\u884c\"><span>\u914d\u7f6e Awstats \u81ea\u52a8\u8fd0\u884c<\/span><\/a><\/p>\n<p>\u4e3a\u4e86\u8ba9\u6574\u4e2a\u65e5\u5fd7\u7684\u7edf\u8ba1\u8fc7\u7a0b\u81ea\u52a8\u5b8c\u6210\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e crontab \u8ba1\u5212\u4efb\u52a1\uff0c\u8ba9 Nginx \u65e5\u5fd7\u5207\u5272\u4ee5\u53ca Awstats<br \/>\n\u81ea\u52a8\u8fd0\u884c\uff0c\u5b9a\u65f6\u751f\u6210\u7ed3\u679c\u9875\u9762\u3002<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>#vi \/etc\/crontab<br><br>11 59 * * * \/opt\/nginx\/sbin\/logcron.sh\t\t\t#\u534a\u591c11:59  \u8fdb\u884c\u65e5\u5fd7\u5207\u5272<br><br>00 1 * * * \/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl  \\<br>-update -config=www.moabc.net -lang=cn -dir=\/data\/admin_web\/awstats \\<br>-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl  <br><br>#\u51cc\u666800:01  Awstats\u8fdb\u884c\u65e5\u5fd7\u5206\u6790<br><br>:wq\u4fdd\u5b58\u9000\u51fa<br>#crontab \/etc\/crontab\t\u6307\u5b9acron\u6240\u6267\u884c\u7684\u914d\u7f6e\u6863\u8def\u5f84<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" alt=\"\" height=\"1\" width=\"100%\" \/><br \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" border=\"0\" height=\"6\" width=\"8\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr align=\"right\">\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" alt=\"\" height=\"4\" width=\"100%\" \/><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/icons\/u_bold.gif\" alt=\"\" border=\"0\" height=\"16\" width=\"16\" \/><\/td>\n<td align=\"right\" valign=\"top\"><a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/#main\" target=\"_blank\" rel=\"noopener\"><b>\u56de\u9875\u9996<\/b><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a name=\"5.\u4fdd\u62a4\u65e5\u5fd7\u7edf\u8ba1\u7ed3\u679c\u9875\u9762\"><span>\u4fdd\u62a4\u65e5\u5fd7\u7edf\u8ba1\u7ed3\u679c\u9875\u9762<\/span><\/a><\/p>\n<p>\u4e00\u822c\u7ad9\u957f\u90fd\u4e0d\u613f\u968f\u4fbf\u8ba9\u4eba\u77e5\u9053\u81ea\u5df1\u7ad9\u7684\u771f\u5b9e\u6d41\u91cf\uff0c\u6240\u4ee5\u8981\u628a Awstats \u7edf\u8ba1\u7ed3\u679c\u9875\u9762\u8fdb\u884c\u5bc6\u7801\u4fdd\u62a4\u3002Nginx \u4f7f\u7528\u7684\u662f\u8ddf Apache<br \/>\n\u4e00\u6837\u7684\u5bc6\u7801\u52a0\u5bc6\u683c\u5f0f\uff0c\u8fd9\u91cc\u9700\u8981\u7528\u5230 apache \u81ea\u5e26\u7684\u5de5\u5177 htpasswd\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5728\u672c\u673a\u4e0a\u9ed8\u8ba4\u88c5\u6709 Apache\uff0c\u8fd9\u4f60\u5c31\u53ea\u9700\u5728\u5b83\u7684\u7a0b\u5e8f\u76ee\u5f55\u4e0b\u8fd0\u884c<\/p>\n<p>\u4f8b:<\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<pre>#\/usr\/local\/apache2\/bin\/htpasswd -c admin.pass admin #\u7528\u6237\u540d\u4e3aadmin<br><br>New password:\t\t\t\u8f93\u5165\u5bc6\u7801<br>Re-type new password:\t\t\u91cd\u590d\u8f93\u5165<br>Adding password for user admin\t\u521b\u5efa\u6210\u529f<br><br>\u7136\u540e\u628a admin.pass \u8fd9\u4e2a\u5bc6\u7801\u5305\u627e\u4e2a\u7684\u5730\u65b9\u85cf\u8d77\u6765.<br>\u4fee\u6539 nginx.conf \u5728 location \u4e2d\u52a0\u5165(\u52a0\u7c97\u90e8\u5206)\uff1a<br><br>server {<br> \tlisten       80;<br> \tserver_name  localhost;<br> \tlocation ~ ^\/web\/ {<br> \troot   \/data\/web;<br> \tindex  index.html;<br> \terror_log off;<br> \tcharset gb2312;<br> \t} <br><br> \tlocation ~ ^\/awstats\/ {\t    # html \u9759\u6001\u9875\u9762\u76ee\u5f55<br>        root   \/data\/admin_web;<br>        index  index.html;<br>        access_log off;<br>        error_log off;<br>        charset gb2312;\t<br>        <span>auth_basic     \"admin\"; #\u7528\u6237\u540d<\/span><br><span>        auth_basic_user_file   \/opt\/ngx\/conf\/admin.pass; #\u5bc6\u7801\u5305\u8def\u5f84<\/span><br>        }<br><br>        location ~ ^\/icon\/ {             # \u56fe\u6807\u76ee\u5f55<br>        root   \/usr\/local\/awstats\/wwwroot;<br>        index  index.html;<br>        access_log off;<br>        error_log off;<br>        charset gb2312;<br>        }<br>}<br><br>\u4fee\u6539 Nginx \u914d\u7f6e\u5b8c\u6bd5\u540e\uff0c\u6267\u884c\u547d\u4ee4 killall -s HUP nginx \u8ba9 Nginx \u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u5373\u53ef\u3002<br><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n<a name=\"_\u4ee3\u7801\u6e05\u5355\u4e0e\u9884\u683c\u5f0f\u5316\u6587\u672c\"><br \/><\/a><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" alt=\"\" height=\"1\" width=\"100%\" \/><br \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" border=\"0\" height=\"6\" width=\"8\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr align=\"right\">\n<td><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/c.gif\" alt=\"\" height=\"4\" width=\"100%\" \/><\/p>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/icons\/u_bold.gif\" alt=\"\" border=\"0\" height=\"16\" width=\"16\" \/><\/td>\n<td align=\"right\" valign=\"top\"><a href=\"http:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-cn-awstats-nginx\/#main\" target=\"_blank\" rel=\"noopener\"><b>\u56de\u9875\u9996<\/b><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a name=\"_\u4ee3\u7801\u6e05\u5355\u4e0e\u9884\u683c\u5f0f\u5316\u6587\u672c\"><\/p>\n<p><\/a><\/p>\n<p><a name=\"6.\u603b\u7ed3\"><span>\u603b<br \/>\n\u7ed3<\/span><\/a><\/p>\n<p>\u5c3d\u7ba1\u8ddf Apache HTTP Server \u76f8\u6bd4\u8f83\u800c\u8a00\uff0cNginx<br \/>\n\u7684\u529f\u80fd\u662f\u6bd4\u8f83\u5f31\u7684\uff0c\u4f46\u662f\u6211\u4eec\u4f9d\u7136\u53ef\u4ee5\u5229\u7528\u4e00\u4e9b\u6280\u5de7\u6765\u89c4\u907f\u8fd9\u4e9b\u5f31\u70b9\uff0cNginx<br \/>\n\u7684\u8bbe\u8ba1\u8005\u80af\u5b9a\u4e5f\u662f\u5145\u5206\u8003\u8651\u5230\u8fd9\u4e2a\u95ee\u9898\u3002\u73b0\u5728\u4e5f\u8d8a\u6765\u8d8a\u591a\u7684\u7b2c\u4e09\u65b9\u5f00\u53d1\u7684\u6a21\u5757\u5728\u9010\u6e10\u7684\u6269\u5c55 Nginx \u7684\u529f\u80fd\u3002\u4f46\u662f\u4ece\u5e94\u7528\u672c\u8eab\u7684\u89d2\u5ea6\u800c\u8a00\uff0cNginx<br \/>\n\u66f4\u503e\u5411\u4e8e\u5353\u8d8a\u7684\u6027\u80fd\uff0c\u800c\u975e\u5927\u800c\u5168\u7684\u529f\u80fd\uff0c\u56e0\u800c\u5728\u4e00\u4e9b\u9644\u52a0\u65b9\u9762\u7684\u529f\u80fd\uff0c\u6211\u4eec\u4e5f\u4e0d\u80fd\u5bf9\u4e4b\u8981\u6c42\u8fc7\u9ad8\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ibm.com\/i\/v14\/rules\/blue_rule.gif\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728\u6211\u7684\u4e0a\u4e00\u7bc7\u6587\u7ae0\u300a\u4f7f\u7528 Nginx \u63d0\u5347\u7f51\u7ad9\u8bbf\u95ee\u901f\u5ea6\u300b\u4e2d\u4ecb\u7ecd\u4e86 Nginx \u8fd9\u4e2a HTTP \u670d\u52a1\u5668\u4ee5\u53ca\u5982...<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15329],"tags":[],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-nginx"],"_links":{"self":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=695"}],"version-history":[{"count":1,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}