{"id":5439,"date":"2020-08-18T16:20:35","date_gmt":"2020-08-18T08:20:35","guid":{"rendered":"http:\/\/39.97.231.10\/?p=5439"},"modified":"2020-08-18T16:20:35","modified_gmt":"2020-08-18T08:20:35","slug":"awstats%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90%e7%b3%bb%e7%bb%9f-2","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=5439","title":{"rendered":"AWStats\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf"},"content":{"rendered":"<div class=\\\"clear\\\"><span style=\\\"color: #1e73be; font-size: 1.38462rem;\\\">1.\u4ec0\u4e48\u662fAWStats<\/span><\/div>\n<div class=\\\"postBody\\\">\n<div id=\\\"cnblogs_post_body\\\" class=\\\"blogpost-body cnblogs-markdown\\\">\nAWStats\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u514d\u8d39\u5de5\u5177\uff0c\u53ef\u4ee5\u56fe\u5f62\u65b9\u5f0f\u751f\u6210\u9ad8\u7ea7Web\uff0c\u6d41\u5a92\u4f53\uff0cftp\u6216\u90ae\u4ef6\u670d\u52a1\u5668\u7edf\u8ba1\u4fe1\u606f\u3002\u6b64\u65e5\u5fd7\u5206\u6790\u5668\u7528\u4f5cCGI\u6216\u547d\u4ee4\u884c\uff0c \u5e76\u5728\u51e0\u4e2a\u56fe\u5f62\u7f51\u9875\u4e2d\u663e\u793a\u60a8\u7684\u65e5\u5fd7\u5305\u542b\u7684\u6240\u6709\u53ef\u80fd\u4fe1\u606f\u3002<br \/>\n\u5b83\u4f7f\u7528\u90e8\u5206\u4fe1\u606f\u6587\u4ef6\u6765\u7ecf\u5e38\u5feb\u901f\u5730\u5904\u7406\u5927\u578b\u65e5\u5fd7\u6587\u4ef6\u3002\u5b83\u53ef\u4ee5\u5206\u6790\u6765\u81ea\u6240\u6709\u4e3b\u8981\u670d\u52a1\u5668\u5de5\u5177\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u5982Apache\u65e5\u5fd7\u6587\u4ef6\uff08NCSA\u7ec4\u5408\/ XLF \/ ELF\u65e5\u5fd7\u683c\u5f0f\u6216\u901a\u7528\/ CLF\u65e5\u5fd7\u683c\u5f0f\uff09\uff0cWebStar\uff0cIIS\uff08W3C\u65e5\u5fd7\u683c\u5f0f\uff09\u4ee5\u53ca\u8bb8\u591a\u5176\u4ed6Web\uff0c\u4ee3\u7406\uff0cwap\uff0c\u6d41\u670d\u52a1\u5668\uff0c\u90ae\u4ef6\u670d\u52a1\u5668\u548c\u4e00\u4e9bftp\u670d\u52a1\u5668\u3002<br \/>\n\u5173\u4e8eAWStats\u4e0e\u5176\u4ed6\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u7684\u5bf9\u6bd4\u53ef\u4ee5\u67e5\u770b\uff1a<a href=\\\"https:\/\/awstats.sourceforge.io\/docs\/awstats_compare.html\\\">https:\/\/awstats.sourceforge.io\/docs\/awstats_compare.html<\/a><\/p>\n<h2 id=\\\"2\u5b89\u88c5awstats\\\"><i id=\\\"locator-2\u5b89\u88c5awstats\\\" class=\\\"lnh-article-header-locator\\\"><\/i>2.\u5b89\u88c5AWStats<\/h2>\n<h3 id=\\\"21-\u83b7\u53d6awstats\\\"><i id=\\\"locator-21-\u83b7\u53d6awstats\\\" class=\\\"lnh-article-header-locator\\\"><\/i>2.1 \u83b7\u53d6awstats<\/h3>\n<p>AWStats \u5b98\u7f51\uff1a<a href=\\\"https:\/\/awstats.sourceforge.io\/\\\">https:\/\/awstats.sourceforge.io\/<\/a><br \/>\nAWStats \u4e0b\u8f7d\u5730\u5740:\u00a0<a href=\\\"https:\/\/awstats.sourceforge.io\/#DOWNLOAD\\\">https:\/\/awstats.sourceforge.io\/#DOWNLOAD<\/a><\/p>\n<h3 id=\\\"22\u5b89\u88c5awstats\\\"><i id=\\\"locator-22\u5b89\u88c5awstats\\\" class=\\\"lnh-article-header-locator\\\"><\/i>2.2\u5b89\u88c5awstats<\/h3>\n<p>\u7cfb\u7edf\u7248\u672c\u8bf4\u660e<\/p>\n<pre><code class=\\\"language-python hljs\\\">[root@clsn ~]<span class=\\\"hljs-comment\\\"># cat  \/etc\/redhat-release<\/span>\nCentOS Linux release <span class=\\\"hljs-number\\\">7.5<\/span><span class=\\\"hljs-number\\\">.1804<\/span> (Core)\n[root@clsn ~]<span class=\\\"hljs-comment\\\"># uname  -r<\/span>\n<span class=\\\"hljs-number\\\">3.10<\/span><span class=\\\"hljs-number\\\">.0<\/span><span class=\\\"hljs-number\\\">-862.9<\/span><span class=\\\"hljs-number\\\">.1<\/span>.el7.x86_64\n<\/code><\/pre>\n<p>\u5b89\u88c5\u6b65\u9aa4<\/p>\n<pre><code class=\\\"language-powershell hljs\\\">wget https:\/\/prdownloads.sourceforge.net\/awstats\/awstats-<span class=\\\"hljs-number\\\">7.7<\/span>.tar.gz\ntar  xf awstats-<span class=\\\"hljs-number\\\">7.7<\/span>.tar.gz\nmv  awstats-<span class=\\\"hljs-number\\\">7.7<\/span> \/usr\/local\/\nln -s \/usr\/local\/awstats-<span class=\\\"hljs-number\\\">7.7<\/span>\/ \/usr\/local\/awstats\n<span class=\\\"hljs-comment\\\"># \u6ce8\uff1aawstats\u9ed8\u8ba4\u4e3awww\u7528\u6237\uff0c\u53ef\u4ee5\u6839\u636eweb\u73af\u5883\u7528\u6237\u8fdb\u884c\u4fee\u6539<\/span>\nchown -R www.www \/usr\/local\/awstats\/\n<\/code><\/pre>\n<h2 id=\\\"3\u914d\u7f6e\u542f\u52a8awstats\\\"><i id=\\\"locator-3\u914d\u7f6e\u542f\u52a8awstats\\\" class=\\\"lnh-article-header-locator\\\"><\/i>3.\u914d\u7f6e\u542f\u52a8AWStats<\/h2>\n<h3 id=\\\"31\u521d\u59cb\u5316\u914d\u7f6e\\\"><i id=\\\"locator-31\u521d\u59cb\u5316\u914d\u7f6e\\\" class=\\\"lnh-article-header-locator\\\"><\/i>3.1\u521d\u59cb\u5316\u914d\u7f6e<\/h3>\n<pre><code class=\\\"hljs css\\\">\u5728\u8fd9\u6b21\u914d\u7f6e\u4e2d\u6211\u5df2\u7ad9\u70b9<span class=\\\"hljs-selector-tag\\\">nmtui<\/span><span class=\\\"hljs-selector-class\\\">.com<\/span>\u4e3a\u4f8b\uff0c\u8fdb\u884c\u8bbe\u7f6e\u3002\n<\/code><\/pre>\n<pre><code class=\\\"language-powershell hljs\\\">[root@clsn tools]<span class=\\\"hljs-comment\\\"># cd \/usr\/local\/awstats\/tools<\/span>\n[root@clsn tools]<span class=\\\"hljs-comment\\\"># .\/awstats_configure.pl<\/span>\n----- AWStats awstats_configure <span class=\\\"hljs-number\\\">1.0<\/span> (build <span class=\\\"hljs-number\\\">20140126<\/span>) (c) Laurent Destailleur -----\nThis tool will help you to configure AWStats to analyze statistics <span class=\\\"hljs-keyword\\\">for<\/span>\none web server. You can <span class=\\\"hljs-keyword\\\">try<\/span> to use it to let it <span class=\\\"hljs-keyword\\\">do<\/span> all that is possible\n<span class=\\\"hljs-keyword\\\">in<\/span> AWStats setup, however following the step by step manual setup\ndocumentation (docs\/index.html) is often a better idea. Above all <span class=\\\"hljs-keyword\\\">if<\/span>:\n- You are not an administrator user,\n- You want to analyze downloaded log files without web server,\n- You want to analyze mail or ftp log files instead of web log files,\n- You need to analyze load balanced servers log files,\n- You want to <span class=\\\"hljs-string\\\">\\'understand\\'<\/span> all possible ways to use AWStats...\nRead the AWStats documentation (docs\/index.html).\n-----&gt; Running OS detected: Linux, BSD or Unix\nWarning: AWStats standard directory on Linux OS is <span class=\\\"hljs-string\\\">\\'\/usr\/local\/awstats\\'<\/span>.\n<span class=\\\"hljs-keyword\\\">If<\/span> you want to use standard directory, you should first move all content\nof AWStats distribution from current directory:\n\/usr\/local\/awstats-<span class=\\\"hljs-number\\\">7.7<\/span>\nto standard directory:\n\/usr\/local\/awstats\nAnd then, run configure.pl from this location.\n<span class=\\\"hljs-keyword\\\">Do<\/span> you want to <span class=\\\"hljs-keyword\\\">continue<\/span> setup from this NON standard directory [yN] ? y\n-----&gt; Check <span class=\\\"hljs-keyword\\\">for<\/span> web server install\nEnter full config file path of your Web server.\nExample: \/etc\/httpd\/httpd.conf\nExample: \/usr\/local\/apache2\/conf\/httpd.conf\nExample: c:\\\\Program files\\\\apache group\\\\apache\\\\conf\\\\httpd.conf\nConfig file path (<span class=\\\"hljs-string\\\">\\'none\\'<\/span> to skip web server setup): <span class=\\\"hljs-comment\\\">#<\/span>\n&gt; none\nYour web server config file(s) could not be found.\nYou will need to setup your web server manually to declare AWStats\nscript as a CGI, <span class=\\\"hljs-keyword\\\">if<\/span> you want to build reports dynamically.\nSee AWStats setup documentation (file docs\/index.html)\n-----&gt; Update model config file <span class=\\\"hljs-string\\\">\\'\/usr\/local\/awstats-7.7\/wwwroot\/cgi-bin\/awstats.model.conf\\'<\/span>\n  File awstats.model.conf updated.\n-----&gt; Need to create a new config file ?\n<span class=\\\"hljs-keyword\\\">Do<\/span> you want me to build a new AWStats config\/profile\nfile (required <span class=\\\"hljs-keyword\\\">if<\/span> first install) [y\/N] ? y\n-----&gt; Define config file name to create\nWhat is the name of your web site or profile analysis ?\nExample: www.mysite.com\nExample: demo\nYour web site, virtual server or profile name:\n&gt; nmtui.com\n-----&gt; Define config file path\n<span class=\\\"hljs-keyword\\\">In<\/span> which directory <span class=\\\"hljs-keyword\\\">do<\/span> you plan to store your config file(s) ?\nDefault: \/etc\/awstats\nDirectory path to store config file(s) (Enter <span class=\\\"hljs-keyword\\\">for<\/span> default):\n&gt;\n-----&gt; Create config file <span class=\\\"hljs-string\\\">\\'\/etc\/awstats\/awstats.nmtui.com.conf\\'<\/span>\n Config file \/etc\/awstats\/awstats.nmtui.com.conf created.\n-----&gt; Add update <span class=\\\"hljs-keyword\\\">process<\/span> inside a scheduler\nSorry, configure.pl does not support automatic add to cron yet.\nYou can <span class=\\\"hljs-keyword\\\">do<\/span> it manually by adding the following command to your cron:\n\/usr\/local\/awstats-<span class=\\\"hljs-number\\\">7.7<\/span>\/wwwroot\/cgi-bin\/awstats.pl -update -config=nmtui.com\nOr <span class=\\\"hljs-keyword\\\">if<\/span> you have several config files and prefer having only one command:\n\/usr\/local\/awstats-<span class=\\\"hljs-number\\\">7.7<\/span>\/tools\/awstats_updateall.pl now\nPress ENTER to continue...\nA SIMPLE config file has been created: \/etc\/awstats\/awstats.nmtui.com.conf\nYou should have a look inside to check and change manually main parameters.\nYou can then manually update your statistics <span class=\\\"hljs-keyword\\\">for<\/span> <span class=\\\"hljs-string\\\">\\'nmtui.com\\'<\/span> with command:\n&gt; perl awstats.pl -update -config=nmtui.com\nYou can also build static report pages <span class=\\\"hljs-keyword\\\">for<\/span> <span class=\\\"hljs-string\\\">\\'nmtui.com\\'<\/span> with command:\n&gt; perl awstats.pl -output=pagetype -config=nmtui.com\nPress ENTER to finish...\n<\/code><\/pre>\n<h3 id=\\\"32\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\\\"><i id=\\\"locator-32\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\\\" class=\\\"lnh-article-header-locator\\\"><\/i>3.2\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u5728\u521d\u59cb\u5316\u914d\u7f6e\u7ea2 nmtui.com \u7ad9\u70b9\u7684\u914d\u7f6e\u6587\u4ef6\u5728 \/etc\/awstats\/awstats.nmtui.com.conf<\/p>\n<pre><code class=\\\"language-powershell hljs\\\">vi \/etc\/awstats\/awstats.nmtui.com.conf\n<span class=\\\"hljs-comment\\\"># \u5728\u914d\u7f6e\u4e2d\u5bfb\u627e\u3010 LogFile \u3011\u5b57\u6bb5,\u5c06\u5176\u4fee\u6539\u4e3a\u8be5\u4e3b\u673a\u7684\u65e5\u5fd7\u5730\u5740\u3002<\/span>\nLogFile=<span class=\\\"hljs-string\\\">\\\"\/www\/wwwlogs\/nmtui.com.log\\\"<\/span>\n<\/code><\/pre>\n<h3 id=\\\"33\u914d\u7f6eweb\u7ad9\u70b9\u5c55\u793aawstats\\\"><i id=\\\"locator-33\u914d\u7f6eweb\u7ad9\u70b9\u5c55\u793aawstats\\\" class=\\\"lnh-article-header-locator\\\"><\/i>3.3\u914d\u7f6eweb\u7ad9\u70b9\u5c55\u793aawstats<\/h3>\n<p>\u5728\u4f7f\u7528\u4e4b\u524d\u9700\u8981\u642d\u5efanginx\u6216httpd\u7b49web\u670d\u52a1\uff0c\u53ef\u4ee5\u53c2\u8003\uff1a<a href=\\\"http:\/\/clsn.io\/clsn\/lx892.html\\\">http:\/\/clsn.io\/clsn\/lx892.html<\/a><br \/>\n\u914d\u7f6eweb\u7ad9\u70b9\uff1a<\/p>\n<pre><code class=\\\"language-powershell hljs\\\">mkdir  \/www\/wwwroot\/awstats\ncd \/usr\/local\/awstats\/wwwroot\/\ncp -ar  css icon js  \/www\/wwwroot\/awstats\/\nchown  -R www.www  \/www\/wwwroot\/awstats\n<\/code><\/pre>\n<p>\u751f\u6210\u5206\u6790\u65e5\u5fd7<\/p>\n<pre><code class=\\\"language-plain\\\">[root@clsn nginx]# \/usr\/local\/awstats\/tools\/awstats_buildstaticpages.pl  \\\\\n-config=nmtui.com -update -lang=cn \\\\\n-awstatsprog=\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl \\\\\n-dir=\/www\/wwwroot\/awstats\/\nLaunch update process : \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -update -configdir=\nBuild main page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output\nBuild alldomains page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=alldomains\nBuild allhosts page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=allhosts\nBuild lasthosts page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=lasthosts\nBuild unknownip page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=unknownip\nBuild allrobots page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=allrobots\nBuild lastrobots page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=lastrobots\nBuild session page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=session\nBuild urldetail page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=urldetail\nBuild urlentry page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=urlentry\nBuild urlexit page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=urlexit\nBuild osdetail page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=osdetail\nBuild unknownos page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=unknownos\nBuild browserdetail page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=browserdetail\nBuild unknownbrowser page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=unknownbrowser\nBuild downloads page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=downloads\nBuild refererse page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=refererse\nBuild refererpages page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=refererpages\nBuild keyphrases page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=keyphrases\nBuild keywords page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=keywords\nBuild errors400 page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=errors400\nBuild errors403 page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=errors403\nBuild errors404 page: \\\"\/usr\/local\/awstats\/wwwroot\/cgi-bin\/awstats.pl\\\" -config=nmtui.com -staticlinks -lang=cn -output=errors404\n23 files built.\nMain HTML page is \\'awstats.nmtui.com.html\\'.\n<\/code><\/pre>\n<p>\u4fee\u6539nginx\u914d\u7f6e(\u4fee\u6539\u5b8c\u6210\u540e\u91cd\u65b0\u52a0\u8f7dnginx\u914d\u7f6e\u6587\u4ef6)\uff1a<\/p>\n<pre><code class=\\\"language-powershell hljs\\\">[root@clsn nginx]<span class=\\\"hljs-comment\\\"># cat   awstats.nmtui.com.conf<\/span>\nserver\n{\n    listen <span class=\\\"hljs-number\\\">80<\/span>;\n    server_name awstats.nmtui.com;\n    index awstats.nmtui.com.html;\n    root \/www\/wwwroot\/awstats\/;\n    access_log  \/www\/wwwlogs\/awstats.nmtui.com.log;\n    error_log  \/www\/wwwlogs\/awstats.nmtui.com-error.log;\n}\n[root@clsn nginx]<span class=\\\"hljs-comment\\\"># \/etc\/init.d\/nginx  reload<\/span>\n<\/code><\/pre>\n<h3 id=\\\"34\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\\\"><i id=\\\"locator-34\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\\\" class=\\\"lnh-article-header-locator\\\"><\/i>3.4\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<pre><code class=\\\"language-bash hljs\\\"><span class=\\\"hljs-comment\\\"># \u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\uff0c\u5b9a\u65f6\u66f4\u65b0awstats\u5206\u6790\u65e5\u5fd7<\/span>\n<\/code><\/pre>\n<h2 id=\\\"4\u5b89\u5168\u52a0\u56fa\\\"><i id=\\\"locator-4\u5b89\u5168\u52a0\u56fa\\\" class=\\\"lnh-article-header-locator\\\"><\/i>4.\u5b89\u5168\u52a0\u56fa<\/h2>\n<h3 id=\\\"41\u4f7f\u7528htpasswd\u751f\u6210\u52a0\u5bc6\u5bc6\u7801\\\"><i id=\\\"locator-41\u4f7f\u7528htpasswd\u751f\u6210\u52a0\u5bc6\u5bc6\u7801\\\" class=\\\"lnh-article-header-locator\\\"><\/i>4.1\u4f7f\u7528htpasswd\u751f\u6210\u52a0\u5bc6\u5bc6\u7801<\/h3>\n<pre><code class=\\\"language-bash hljs\\\">[root@clsn nginx]<span class=\\\"hljs-comment\\\"># yum install httpd-tools -y<\/span>\n[root@clsn nginx]<span class=\\\"hljs-comment\\\"># htpasswd  -c \/usr\/local\/awstats\/wwwroot\/nmtui.passwd nmtui<\/span>\nNew password:\nRe-type new password:\nAdding password <span class=\\\"hljs-keyword\\\">for<\/span> user nmtui\n[root@clsn nginx]<span class=\\\"hljs-comment\\\"># chown www.www  \/usr\/local\/awstats\/wwwroot\/nmtui.passwd<\/span>\n[root@clsn nginx]<span class=\\\"hljs-comment\\\"># chmod 600  \/usr\/local\/awstats\/wwwroot\/nmtui.passwd<\/span>\n<\/code><\/pre>\n<h3 id=\\\"42\u6dfb\u52a0web\u8bbf\u95ee\u8ba4\u8bc1\\\"><i id=\\\"locator-42\u6dfb\u52a0web\u8bbf\u95ee\u8ba4\u8bc1\\\" class=\\\"lnh-article-header-locator\\\"><\/i>4.2\u6dfb\u52a0web\u8bbf\u95ee\u8ba4\u8bc1<\/h3>\n<pre><code class=\\\"language-bash hljs\\\">[root@clsn nginx]<span class=\\\"hljs-comment\\\"># vim  awstats.nmtui.com.conf<\/span>\nserver\n{\n    listen 80;\n    server_name awstats.nmtui.com;\n    index awstats.nmtui.com.html;\n    root \/www\/wwwroot\/awstats\/;\n    auth_basic <span class=\\\"hljs-string\\\">\\\"clsn training\\\"<\/span>;\n    auth_basic_user_file \/usr\/<span class=\\\"hljs-built_in\\\">local<\/span>\/awstats\/wwwroot\/nmtui.passwd;\n    access_log  \/www\/wwwlogs\/301-clsn.io.log;\n    error_log  \/www\/wwwlogs\/301-clsn.io-error.log;\n}\n[root@clsn nginx]<span class=\\\"hljs-comment\\\"># \/etc\/init.d\/nginx  reload<\/span>\n<\/code><\/pre>\n<h2 id=\\\"5\u67e5\u770b\u5206\u6790\u65e5\u5fd7\\\"><i id=\\\"locator-5\u67e5\u770b\u5206\u6790\u65e5\u5fd7\\\" class=\\\"lnh-article-header-locator\\\"><\/i>5.\u67e5\u770b\u5206\u6790\u65e5\u5fd7<\/h2>\n<h3 id=\\\"51\u5b89\u5168\u52a0\u56fa\u751f\u6548\\\"><i id=\\\"locator-51\u5b89\u5168\u52a0\u56fa\u751f\u6548\\\" class=\\\"lnh-article-header-locator\\\"><\/i>5.1\u5b89\u5168\u52a0\u56fa\u751f\u6548<\/h3>\n<div data-type=\\\"alignment\\\" data-value=\\\"center\\\">\n<div data-type=\\\"p\\\">\n<div id=\\\"uf49rk\\\" data-type=\\\"image\\\" data-display=\\\"block\\\" data-align=\\\"center\\\" data-src=\\\"https:\/\/cdn.nlark.com\/yuque\/0\/2018\/png\/206952\/1542075524714-51e8dace-9e09-4112-9e20-05504049d854.png\\\" data-width=\\\"448\\\"><img src=\\\"https:\/\/cdn.nlark.com\/yuque\/0\/2018\/png\/206952\/1542075524714-51e8dace-9e09-4112-9e20-05504049d854.png\\\" width=\\\"448\\\" \/><\/div>\n<\/div>\n<\/div>\n<h3 id=\\\"52-\u5206\u6790\u65e5\u5fd7\u663e\u793a\u6b63\u5e38\\\"><i id=\\\"locator-52-\u5206\u6790\u65e5\u5fd7\u663e\u793a\u6b63\u5e38\\\" class=\\\"lnh-article-header-locator\\\"><\/i>5.2 \u5206\u6790\u65e5\u5fd7\u663e\u793a\u6b63\u5e38<\/h3>\n<p><img src=\\\"https:\/\/cdn.nlark.com\/yuque\/0\/2018\/png\/206952\/1542075675672-038aed21-d95e-446b-9a64-96fd53237acf.png\\\" alt=\\\"\u56fe\u7247.png | center | 747x341\\\" \/>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1.\u4ec0\u4e48\u662fAWStats AWStats\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u514d\u8d39\u5de5\u5177\uff0c\u53ef\u4ee5\u56fe\u5f62\u65b9\u5f0f\u751f\u6210\u9ad8\u7ea7Web\uff0c\u6d41\u5a92\u4f53 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=5439\"> <span class=\"screen-reader-text\">AWStats\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[102,124],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":7,"uagb_excerpt":"1.\u4ec0\u4e48\u662fAWStats AWStats\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u514d\u8d39\u5de5\u5177\uff0c\u53ef\u4ee5\u56fe\u5f62\u65b9\u5f0f\u751f\u6210\u9ad8\u7ea7Web\uff0c\u6d41\u5a92\u4f53&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5439"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5439"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5439\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}