{"id":318,"date":"2021-07-28T14:24:59","date_gmt":"2021-07-28T06:24:59","guid":{"rendered":"http:\/\/egonlin.com\/?p=318"},"modified":"2024-03-21T15:53:20","modified_gmt":"2024-03-21T07:53:20","slug":"%e7%ac%ac%e4%b8%80%e8%8a%82%ef%bc%9anginx-web%e5%85%a5%e9%97%a8","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=318","title":{"rendered":"\u7b2c\u4e00\u8282\uff1anginx web\u5165\u95e8"},"content":{"rendered":"<h1>Nginx web\u57fa\u7840<\/h1>\n<h2>\u4e00\u3001Nginx\u4ecb\u7ecd<\/h2>\n<h3>1\u3001\u6982\u8ff0<\/h3>\n<pre><code class=\"language-bash\">Nginx\u662f\u4e00\u4e2a\u5f00\u6e90\u4e14\u9ad8\u6027\u80fd\u3001\u53ef\u9760\u7684http web\u670d\u52a1\u3001\u4ee3\u7406\u670d\u52a1\n\n\u5f00\u6e90\uff1a\u76f4\u63a5\u83b7\u53d6\u6e90\u4ee3\u7801\n\u9ad8\u6027\u80fd\uff1a\u652f\u6301\u6d77\u91cf\u5f00\u53d1\n\u53ef\u9760\uff1a\u670d\u52a1\u7a33\u5b9a<\/code><\/pre>\n<h3>2\u3001Nginx\u7279\u70b9<\/h3>\n<h4>1\uff09\u9ad8\u6027\u80fd\uff0c\u9ad8\u5e76\u53d1<\/h4>\n<pre><code class=\"language-bash\">nginx\u652f\u6301\u5f88\u9ad8\u7684\u5e76\u53d1\uff0cnginx\u5728\u5904\u7406\u5927\u91cf\u5e76\u53d1\u7684\u60c5\u51b5\u4e0b\u6bd4\u5176\u4ed6web\u670d\u52a1\u8981\u5feb<\/code><\/pre>\n<h4>2\uff09\u8f7b\u91cf\u4e14\u9ad8\u6269\u5c55\u6027<\/h4>\n<pre><code class=\"language-bash\">#\u8f7b\u91cf\n\u529f\u80fd\u6a21\u5757\u5c11\uff0c\u53ea\u4fdd\u7559\u6838\u5fc3\u6a21\u5757\uff0c\u5176\u4ed6\u4ee3\u7801\u6a21\u5757\u5316 (\u6613\u8bfb\uff0c\u4fbf\u4e8e\u4e8c\u6b21\u5f00\u53d1\uff0c\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u975e\u5e38\u53cb\u597d)\n\n#\u9ad8\u6269\u5c55\u6027\n\u9700\u8981\u4ec0\u4e48\u6a21\u5757\u518d\u5b89\u88c5\u6a21\u5757\uff0c\u4e0d\u9700\u8981\u5168\u90e8\u5b89\u88c5\uff0c\u5e76\u4e14\u8fd8\u652f\u6301\u7b2c\u4e09\u65b9\u6a21\u5757<\/code><\/pre>\n<h4>3) \u9ad8\u53ef\u9760\u6027<\/h4>\n<pre><code class=\"language-bash\">\u53ea\u8981\u4e0d\u8fc7\u5206\u51e0\u4e4e\u4e0d\u4f1a\u51fa\u73b0\u95ee\u9898\n\u5176\u4ed6\u7684web\u670d\u52a1\u9700\u8981\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u8fdb\u884c\u91cd\u542f\uff0cnginx\u4e0d\u9700\u8981\nnginx\u7684\u5b95\u673a\u65f6\u95f4\uff0c\u662f99999\u7ea7\u522b<\/code><\/pre>\n<h4>4) \u652f\u6301\u70ed\u90e8\u7f72<\/h4>\n<pre><code class=\"language-bash\">nginx\u53ef\u4ee5\u518d\u8fd0\u884c\u671f\u95f4\uff0c\u66f4\u65b0\u8fed\u4ee3\uff0c\u4ee3\u7801\u90e8\u7f72<\/code><\/pre>\n<h4>5) \u5927\u591a\u6570\u516c\u53f8\u90fd\u5728\u7528nginx<\/h4>\n<pre><code class=\"language-bash\">1.Nginx\u6280\u672f\u6210\u719f\uff0c\u5177\u5907\u7684\u529f\u80fd\u662f\u4f01\u4e1a\u6700\u5e38\u4f7f\u7528\u800c\u4e14\u6700\u9700\u8981\u7684\n2.\u9002\u5408\u5f53\u524d\u4e3b\u6d41\u67b6\u6784\u8d8b\u52bf, \u5fae\u670d\u52a1\u3001\u4e91\u67b6\u6784\u3001\u4e2d\u95f4\u5c42\n3.\u7edf\u4e00\u6280\u672f\u6808, \u964d\u4f4e\u7ef4\u62a4\u6210\u672c, \u964d\u4f4e\u6280\u672f\u66f4\u65b0\u6210\u672c\u3002<\/code><\/pre>\n<h4>6) Nginx\u4f7f\u7528\u7684\u662fEpool\u7f51\u7edc\u6a21\u578b<\/h4>\n<pre><code class=\"language-bash\">Select: \u5f53\u7528\u6237\u53d1\u8d77\u4e00\u6b21\u8bf7\u6c42\uff0cselect\u6a21\u578b\u5c31\u4f1a\u8fdb\u884c\u4e00\u6b21\u904d\u5386\u626b\u63cf\uff0c\u4ece\u800c\u5bfc\u81f4\u6027\u80fd\u4f4e\u4e0b\u3002\nEpoll: \u5f53\u7528\u6237\u53d1\u8d77\u4e00\u6b21\u8bf7\u6c42\uff0cepoll\u6a21\u578b\u4f1a\u76f4\u63a5\u8fdb\u884c\u5904\u7406\uff0c\u6548\u7387\u9ad8\u6548\uff0c\u5e76\u65e0\u8fde\u63a5\u9650\u5236\u3002<\/code><\/pre>\n<h4>7\uff09nginx\u5e94\u7528\u573a\u666f<\/h4>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/egonlin.com\/wp-content\/uploads\/2021\/07\/nginx-\u5e94\u7528\u573a\u666f-1024x488.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/egonlin.com\/wp-content\/uploads\/2021\/07\/nginx-\u5e94\u7528\u573a\u666f-1024x488.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" \/><\/div><\/p>\n<h3>3\u3001\u5176\u4ed6\u7684web\u670d\u52a1<\/h3>\n<pre><code class=\"language-bash\">1.apache\uff1ahttpd\uff0c\u6700\u65e9\u671f\u4f7f\u7528\u7684web\u670d\u52a1\uff0c\u6027\u80fd\u4e0d\u9ad8\uff0c\u64cd\u4f5c\u96be\n2.nginx\n    tengine\uff1aTengine\u662f\u7531\u6dd8\u5b9d\u7f51\u53d1\u8d77\u7684Web\u670d\u52a1\u5668\u9879\u76ee\u3002\u5b83\u5728Nginx\u7684\u57fa\u7840\u4e0a\uff0c\u9488\u5bf9\u5927\u8bbf\u95ee\u91cf\u7f51\u7ad9\u7684\u9700\u6c42\uff0c\u6dfb\u52a0\u4e86\u5f88\u591a\u9ad8\u7ea7\u529f\u80fd\u548c\u7279\u6027\n    openresty-nginx\uff1aOpenResty \u662f\u4e00\u4e2a\u57fa\u4e8e Nginx \u4e0e Lua \u7684\u9ad8\u6027\u80fd Web \u5e73\u53f0\uff0c\u5176\u5185\u90e8\u96c6\u6210\u4e86\u5927\u91cf\u7cbe\u826f\u7684 Lua \u5e93\u3001\u7b2c\u4e09\u65b9\u6a21\u5757\u4ee5\u53ca\u5927\u591a\u6570\u7684\u4f9d\u8d56\u9879\u3002\u7528\u4e8e\u65b9\u4fbf\u5730\u642d\u5efa\u80fd\u591f\u5904\u7406\u8d85\u9ad8\u5e76\u53d1\u3001\u6269\u5c55\u6027\u6781\u9ad8\u7684\u52a8\u6001 Web \u5e94\u7528\u3001Web \u670d\u52a1\u548c\u52a8\u6001\u7f51\u5173\u3002\n3.IIS\uff1awindows\u4e0b\u7684web\u670d\u52a1\n4.lighttpd\uff1a\u662f\u4e00\u4e2a\u5fb7\u56fd\u4eba\u9886\u5bfc\u7684\u5f00\u6e90 Web \u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u5176\u6839\u672c\u7684\u76ee\u7684\u662f\u63d0\u4f9b\u4e00\u4e2a\u4e13\u95e8\u9488\u5bf9\u9ad8\u6027\u80fd\u7f51\u7ad9\uff0c\u5b89\u5168\u3001\u5feb\u901f\u3001\u517c\u5bb9\u6027\u597d\u5e76\u4e14\u7075\u6d3b\u7684 Web Server \u73af\u5883\u3002\u5177\u6709\u975e\u5e38\u4f4e\u7684\u5185\u5b58\u5f00\u9500\uff0cCPU \u5360\u7528\u7387\u4f4e\uff0c\u6548\u80fd\u597d\uff0c\u4ee5\u53ca\u4e30\u5bcc\u7684\u6a21\u5757\u7b49\u7279\u70b9\u3002\n5.GWS\uff1agoogle web server\n6.BWS\uff1abaidu web server\n\nTomcat\nResin\nweblogic\nJboss<\/code><\/pre>\n<h2>\u4e8c\u3001Nginx\u5b89\u88c5<\/h2>\n<h3>1\u3001\u5b89\u88c5\u65b9\u5f0f<\/h3>\n<pre><code class=\"language-bash\">1.epol\u6e90\u5b89\u88c5       web01\n2.\u5b98\u65b9\u6e90\u5b89\u88c5       web03\n3.\u6e90\u7801\u5305\u5b89\u88c5       web03\n\n#\u4e09\u79cd\u5b89\u88c5\u65b9\u5f0f\u90fd\u9700\u8981\u5b89\u88c5nginx\u8fd0\u884c\u7684\u4f9d\u8d56\u73af\u5883\nyum install -y gcc gcc-c++ autoconf pcre pcre-devel make automake wget httpd-tools vim tree<\/code><\/pre>\n<h3>2\u3001epol\u6e90\u5b89\u88c5<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# yum install -y nginx<\/code><\/pre>\n<h3>3\u3001\u5b98\u65b9\u6e90\u5b89\u88c5<\/h3>\n<h4>1) \u914d\u7f6e\u5b98\u65b9\u6e90<\/h4>\n<pre><code class=\"language-bash\">[root@web02 ~]# vim \/etc\/yum.repos.d\/nginx.repo\n[nginx-stable]\nname=nginx stable repo\nbaseurl=http:\/\/nginx.org\/packages\/centos\/7\/$basearch\/\ngpgcheck=1\nenabled=1\ngpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key\nmodule_hotfixes=true\n\n[root@web02 ~]# yum install -y nginx<\/code><\/pre>\n<h3>4\u3001\u6e90\u7801\u5305\u5b89\u88c5<\/h3>\n<h4>1\uff09\u4e0b\u8f7d\u5b89\u88c5\u5305<\/h4>\n<pre><code class=\"language-bash\">[root@web03 ~]# wget http:\/\/nginx.org\/download\/nginx-1.18.0.tar.gz<\/code><\/pre>\n<h4>2)  \u89e3\u538b\u6e90\u7801\u5305<\/h4>\n<pre><code class=\"language-bash\">[root@web03 ~]# tar xf nginx-1.18.0.tar.gz <\/code><\/pre>\n<h4>3\uff09\u914d\u7f6e\u5b89\u88c5\u7684\u73af\u5883\uff08\u8fd0\u884c\u7528\u6237\uff0c\u5b89\u88c5\u76ee\u5f55\u7b49\uff09<\/h4>\n<pre><code class=\"language-bash\">1.\u521b\u5efa\u7528\u6237\u548c\u7ec4\uff0c\u4e14\u4e0d\u521b\u5efa\u7528\u6237\u7684\u5bb6\u76ee\u5f55\n[root@web03 ~]# groupadd www -g 666\n[root@web03 ~]# useradd www -u 666 -g 666 -s \/sbin\/nologin -M\n\n2.\u521b\u5efa\u4e00\u4e2a\u5b89\u88c5\u76ee\u5f55\n\u516c\u53f8\u4e0d\u6307\u5b9a\u5b89\u88c5\u76ee\u5f55\u65f6\uff0c\u9ed8\u8ba4\u5b89\u88c5\u5230\/usr\/local\/\u8f6f\u4ef6\u540d\/\n\u516c\u53f8\u6307\u5b9a\u7684\u8bdd\uff0c\u5c31\u8981\u6309\u7167\u516c\u53f8\u8981\u6c42\u6765<\/code><\/pre>\n<h4>4\uff09\u751f\u6210Makefile<\/h4>\n<pre><code class=\"language-bash\">[root@web03 ~\/nginx-1.18.0]# cd nginx-1.18.0\/\n[root@web03 ~\/nginx-1.18.0]#.\/configure --prefix=\/usr\/local\/nginx-1.18.0 --user=www --group=www --without-http_gzip_module<\/code><\/pre>\n<h4>5\uff09\u7f16\u8bd1\u5b89\u88c5,\u7ed3\u675f\u540e\u53bb\u5b89\u88c5\u76ee\u5f55\u67e5\u770b\u5b89\u88c5\u7ed3\u679c<\/h4>\n<pre><code class=\"language-bash\">1.\u7f16\u8bd1\u5b89\u88c5\n[root@web03 nginx-1.18.0]# make &amp;&amp; make install\n\n2.\u67e5\u770b\u5b89\u88c5\u7ed3\u679c\n[root@web03 \/usr\/local]# cd \/usr\/local\/nginx-1.18.0\/\n[root@web03 \/usr\/local\/nginx-1.18.0]# ll\ntotal 0\ndrwxr-xr-x 2 root root 333 Nov 26 15:40 conf\ndrwxr-xr-x 2 root root  40 Nov 26 15:40 html\ndrwxr-xr-x 2 root root   6 Nov 26 15:40 logs\ndrwxr-xr-x 2 root root  19 Nov 26 15:40 sbin<\/code><\/pre>\n<h4>6\uff09\u505a\u8f6f\u8fde\u63a5<\/h4>\n<pre><code class=\"language-bash\">[root@web03 \/usr\/local\/nginx-1.18.0]# ln -s \/usr\/local\/nginx-1.18.0 \/usr\/local\/nginx\n[root@web03 \/usr\/local]# ll\ntotal 0\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 bin\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 etc\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 games\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 include\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 lib\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 lib64\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 libexec\nlrwxrwxrwx  1 root root 23 Nov 26 15:46 nginx -&gt; \/usr\/local\/nginx-1.18.0 ##\u6210\u529f\ndrwxr-xr-x  6 root root 54 Nov 26 15:40 nginx-1.18.0\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 sbin\ndrwxr-xr-x. 5 root root 49 Nov 17 20:30 share\ndrwxr-xr-x. 2 root root  6 Apr 11  2018 src<\/code><\/pre>\n<h4>7\uff09\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<pre><code class=\"language-bash\">[root@web03 ~]# vim \/etc\/profile.d\/nginx.sh\nexport PATH=$PATH:\/usr\/local\/nginx\/sbin\n~                                      \n[root@web03 ~]# source \/etc\/profile         #\u5728\u5f53\u524dbash\u73af\u5883\u4e0b\u8bfb\u53d6\u5e76\u6267\u884c\/etc\/profile\u4e2d\u7684\u547d\u4ee4<\/code><\/pre>\n<h4>8\uff09system\u7ba1\u7406\u914d\u7f6e<\/h4>\n<pre><code class=\"language-bash\">#\u6e90\u7801\u5305\u5b89\u88c5\u540e\u6ca1\u6709\u529e\u6cd5\u4f7f\u7528system\u7ba1\u7406\uff0c\u9700\u8981\u6211\u4eec\u81ea\u5df1\u914d\u7f6e\n[root@web03 \/usr\/lib\/systemd\/system]# vim \/usr\/lib\/systemd\/system\/nginx.service\n[Unit]\nDescription=nginx - high performance web server\nDocumentation=http:\/\/nginx.org\/en\/docs\/\nAfter=network-online.target remote-fs.target nss-lookup.target\nWants=network-online.target\n\n[Service]\nType=forking\nPIDFile=\/usr\/local\/nginx\/logs\/nginx.pid\nExecStart=\/usr\/local\/nginx\/sbin\/nginx -c \/usr\/local\/nginx\/conf\/nginx.conf\nExecReload=\/usr\/local\/nginx\/sbin\/nginx -s reload\nExecStop=\/usr\/local\/nginx\/sbin\/nginx -s stop\n\n[Install]\nWantedBy=multi-user.target\n\n[root@web03 ~]# systemctl daemon-reload                 #\u52a0\u8f7d\u65b0\u7684unit \uff08*.service\uff09\u914d\u7f6e\u6587\u4ef6\n<\/code><\/pre>\n<h2>\u4e09\u3001Nginx\u547d\u4ee4<\/h2>\n<pre><code class=\"language-bash\">nginx #\u542f\u52a8nginx\u3002 \u7b49\u4ef7\u4e8esystemctl start nginx\n\nnginx -s reopen #\u91cd\u542fNginx\u3002   \u7b49\u4ef7\u4e8esystemctl restart nginx\n\nnginx -s reload #\u91cd\u65b0\u52a0\u8f7dNginx\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u4ee5\u4f18\u96c5\u7684\u65b9\u5f0f\u91cd\u542fNginx\u3002 \u7b49\u4ef7\u4e8esystemctl reload nginx\n\nnginx -s stop #\u5f3a\u5236\u505c\u6b62Nginx\u670d\u52a1\u3002 \u7b49\u4ef7\u4e8esystemctl stop nginx\n\nnginx -s quit #\u4f18\u96c5\u5730\u505c\u6b62Nginx\u670d\u52a1\uff08\u5373\u5904\u7406\u5b8c\u6240\u6709\u8bf7\u6c42\u540e\u518d\u505c\u6b62\u670d\u52a1\uff09\n\nnginx -t #\u68c0\u6d4b\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef\uff0c\u7136\u540e\u9000\u51fa\n\nnginx -?,-h #\u6253\u5f00\u5e2e\u52a9\u4fe1\u606f\n\nnginx -v #\u663e\u793a\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa\n\nnginx -V #\u663e\u793a\u7248\u672c\u548c\u914d\u7f6e\u9009\u9879\u4fe1\u606f\uff0c\u7136\u540e\u9000\u51fa\n\nnginx -V 2&gt;&amp;1 | sed &quot;s\/\\s\\+--\/\\n --\/g&quot; #\u6a21\u5757\u5206\u884c\u8f93\u51fa\uff0c\u683c\u5f0f\u5316\u8f93\u51fa\n\nkillall nginx #\u6740\u6b7b\u6240\u6709nginx\u8fdb\u7a0b\n\nsystemctl enable nginx  #\u52a0\u5165\u5f00\u673a\u81ea\u542f\n    Centos6\uff1a\n        \u542f\u52a8\uff1anginx\n            service nginx start\n            \/etc\/init.d\/nginx start\n        \u52a0\u5165\u5f00\u673a\u81ea\u542f\uff1a\n            chkconfig nginx on\n\nnginx -T #\u68c0\u6d4b\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef\uff0c\u8f6c\u50a8\u5e76\u9000\u51fa\n\nnginx -q #\u5728\u68c0\u6d4b\u914d\u7f6e\u6587\u4ef6\u671f\u95f4\u5c4f\u853d\u975e\u9519\u8bef\u4fe1\u606f\n\nnginx -p prefix #\u8bbe\u7f6e\u524d\u7f00\u8def\u5f84(\u9ed8\u8ba4\u662f:\/usr\/share\/nginx\/)\n\nnginx -c filename #\u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6(\u9ed8\u8ba4\u662f:\/etc\/nginx\/nginx.conf)\n\nnginx -g directives #\u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6\u5916\u7684\u5168\u5c40\u6307\u4ee4\n<\/code><\/pre>\n<h2>\u56db\u3001Nginx\u670d\u52a1\u5e73\u6ed1\u65e0\u611f\u77e5\u6dfb\u52a0\u6a21\u5757\u548c\u5347\u7ea7<\/h2>\n<h3>1\u3001\u6a21\u5757\u89e3\u6790<\/h3>\n<pre><code class=\"language-bash\">[root@web02 ~]# nginx -V        #\u663e\u793a\u7248\u672c\u548c\u914d\u7f6e\u9009\u9879\u4fe1\u606f\uff0c\u7136\u540e\u9000\u51fa\nnginx version: nginx\/1.18.0     \nbuilt by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) \nbuilt with OpenSSL 1.0.2k-fips  26 Jan 2017\nTLS SNI support enabled\nconfigure arguments: --prefix=\/etc\/nginx --sbin-path=\/usr\/sbin\/nginx --modules-path=\/usr\/lib64\/nginx\/modules --conf-path=\/etc\/nginx\/nginx.conf --error-log-path=\/var\/log\/nginx\/error.log --http-log-path=\/var\/log\/nginx\/access.log --pid-path=\/var\/run\/nginx.pid --lock-path=\/var\/run\/nginx.lock --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt=&#039;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC&#039; --with-ld-opt=&#039;-Wl,-z,relro -Wl,-z,now -pie\n\n############################\u5185\u5bb9\u89e3\u6790#######################################\n\nnginx version: nginx\/1.18.0                 #nginx\u7248\u672c\nbuilt by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)    #\nbuilt with OpenSSL 1.0.2k-fips  26 Jan 2017\nTLS SNI support enabled\nconfigure arguments:\n --prefix=\/etc\/nginx            #nginx\u6587\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u5176\u5b83\u9009\u9879\u5982\u679c\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\uff0c\u90a3\u4e48\u4ee5\u6b64\u8def\u5f84\u4e3a\u57fa\u7840\u8def\u5f84\n --sbin-path=\/usr\/sbin\/nginx    #\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u7684\u5b89\u88c5\u76ee\u5f55\n --modules-path=\/usr\/lib64\/nginx\/modules    #\u6a21\u5757\u5b89\u88c5\u8def\u5f84\n --conf-path=\/etc\/nginx\/nginx.conf  #\u8bbe\u7f6enginx\u7684conf\u6587\u4ef6\u8def\u5f84\n --error-log-path=\/var\/log\/nginx\/error.log  #\u8bbe\u7f6enginx\u9519\u8bef\u65e5\u5fd7\u8def\u5f84\n --http-log-path=\/var\/log\/nginx\/access.log  #\u8bbe\u7f6enginx\u7684\u8bbf\u95ee\u65e5\u5fd7\u8def\u5f84\n --pid-path=\/var\/run\/nginx.pid  #\u8bbe\u7f6enginx\u7684pid\u6587\u4ef6\u8def\u5f84\n --lock-path=\/var\/run\/nginx.lock    #\u8bbe\u7f6elock\u6587\u4ef6\u4e34\u65f6\u5b58\u653e\u7684\u8def\u5f84\n --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp  #\u8bbe\u7f6ehttp\u5ba2\u6237\u7aef\u4e3b\u4f53\u4e34\u65f6\u7f13\u5b58\u8def\u5f84\n --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp     #\u8bbe\u7f6ehttp\u53cd\u5411\u4ee3\u7406\u4e34\u65f6\u8def\u5f84\n --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp     #\u8bbe\u7f6ehttp\u7684fastcgi\u4e34\u65f6\u7f13\u5b58\u8def\u5f84\n --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp #\u8bbe\u7f6euwsgi\u4e34\u65f6\u76ee\u5f55\n --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp   #scgi\u4e34\u65f6\u5b58\u653e\u76ee\u5f55\n --user=nginx   #\u8bbe\u7f6e\u542f\u52a8 worker \u8fdb\u7a0b\u65f6\u6240\u4f7f\u7528\u7684\u975e\u7279\u6743\u7528\u6237\u540d\n --group=nginx  #\u8bbe\u7f6e\u542f\u52a8 worker \u8fdb\u7a0b\u65f6\u6240\u4f7f\u7528\u7684\u975e\u7279\u6743\u7528\u6237\u7ec4\u540d\n --with-compat\n --with-file-aio\n --with-threads\n --with-http_addition_module\n --with-http_auth_request_module\n --with-http_dav_module\n --with-http_flv_module\n --with-http_gunzip_module\n --with-http_gzip_static_module\n --with-http_mp4_module\n --with-http_random_index_module\n --with-http_realip_module\n --with-http_secure_link_module\n --with-http_slice_module\n --with-http_ssl_module\n --with-http_stub_status_module\n --with-http_sub_module\n --with-http_v2_module\n --with-mail\n --with-mail_ssl_module\n --with-stream\n --with-stream_realip_module\n --with-stream_ssl_module\n --with-stream_ssl_preread_module\n --with-cc-opt=&#039;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong\n --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC&#039;\n --with-ld-opt=&#039;-Wl,-z,relro -Wl,-z,now -pie&#039;\n<\/code><\/pre>\n<h3>2.nginx\u670d\u52a1\u6dfb\u52a0\u6a21\u5757<\/h3>\n<pre><code class=\"language-bash\">1.\u5b89\u88c5\u4f9d\u8d56\n[root@web02 nginx-1.16.1]# yum install -y openssl openssl-devel\n\n2.\u518d\u751f\u6210\u4e00\u6b21\n[root@web02 nginx-1.16.1]# .\/configure --prefix=\/usr\/local\/nginx-1.16.1-new --user=www --group=www --without-http_gzip_module --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt=&#039;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC&#039; --with-ld-opt=&#039;-Wl,-z,relro -Wl,-z,now -pie&#039;\n\n3.\u5b89\u88c5\n[root@web02 nginx-1.16.1]# make &amp;&amp; make install\n\n4.\u91cd\u505a\u8f6f\u8fde\u63a5\n[root@web02 ~]# rm -rf \/usr\/local\/nginx &amp;&amp; ln -s \/usr\/local\/nginx-1.16.1-new \/usr\/local\/nginx\n\n5.\u91cd\u542f\u670d\u52a1\n[root@web02 nginx-1.16.1]# systemctl restart nginx<\/code><\/pre>\n<h3>3.nginx\u5347\u7ea7<\/h3>\n<pre><code class=\"language-bash\">1.\u4e0b\u8f7d\u65b0\u7248\u672c\u7684\u5305\n[root@web02 ~]# wget http:\/\/nginx.org\/download\/nginx-1.18.0.tar.gz\n\n2.\u89e3\u538b\n[root@web02 ~]# tar xf nginx-1.18.0.tar.gz\n\n3.\u751f\u6210\n[root@web02 nginx-1.18.0]# cd nginx-1.18.0\n[root@web02 nginx-1.18.0]# .\/configure --prefix=\/usr\/local\/nginx-1.18.0 --user=www --group=www --without-http_gzip_module --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module\n\n4.\u7f16\u8bd1\u5b89\u88c5\n[root@web02 nginx-1.18.0]# make &amp;&amp; make install\n\n5.\u91cd\u505a\u8f6f\u8fde\u63a5\n[root@web02 ~]# rm -rf \/usr\/local\/nginx &amp;&amp; ln -s \/usr\/local\/nginx-1.18.0 \/usr\/local\/nginx\n\n6.\u91cd\u542f\u670d\u52a1\n[root@web02 ~]# systemctl restart nginx<\/code><\/pre>\n<h2>\u4e94\u3001Nginx\u76f8\u5173\u6587\u4ef6<\/h2>\n<h2><\/h2>\n<pre><code class=\"language-bash\">\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u6e05\u6670\u7684\u4e86\u89e3Nginx\u8f6f\u4ef6\u7684\u5168\u8c8c\uff0c\u53ef\u4f7f\u7528rpm -ql nginx\u67e5\u770b\u6574\u4f53\u7684\u76ee\u5f55\u7ed3\u6784\u53ca\u5bf9\u5e94\u7684\u529f\u80fd\uff0c\u5982\u4e0b\u8868\u683c\u6574\u7406\u4e86Nginx\u6bd4\u8f83\u91cd\u8981\u7684\u914d\u7f6e\u6587\u4ef6<\/code><\/pre>\n<h3>1.Nginx\u4e3b\u914d\u7f6e\u6587\u4ef6<\/h3>\n<table>\n<thead>\n<tr>\n<th><strong>\u8def\u5f84<\/strong><\/th>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u4f5c\u7528<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/nginx.conf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u4e3b\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/conf.d\/default.conf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>\u9ed8\u8ba4\u7f51\u7ad9\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2.Nginx\u4ee3\u7406\u76f8\u5173\u53c2\u6570\u6587\u4ef6<\/h3>\n<table>\n<thead>\n<tr>\n<th><strong>\u8def\u5f84<\/strong><\/th>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u4f5c\u7528<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/fastcgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Fastcgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/scgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>scgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/uwsgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>uwsgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>3.Nginx\u7f16\u7801\u76f8\u5173\u914d\u7f6e\u6587\u4ef6<\/h3>\n<table>\n<thead>\n<tr>\n<th><strong>\u8def\u5f84<\/strong><\/th>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u4f5c\u7528<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/win-utf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/koi-utf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/koi-win<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/mime.types<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Content-Type\u4e0e\u6269\u5c55\u540d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>4.Nginx\u7ba1\u7406\u76f8\u5173\u547d\u4ee4<\/h3>\n<table>\n<thead>\n<tr>\n<th><strong>\u8def\u5f84<\/strong><\/th>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u4f5c\u7528<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/usr\/sbin\/nginx<\/td>\n<td>\u547d\u4ee4<\/td>\n<td>Nginx\u547d\u4ee4\u884c\u7ba1\u7406\u7ec8\u7aef\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>\/usr\/sbin\/nginx-debug<\/td>\n<td>\u547d\u4ee4<\/td>\n<td>Nginx\u547d\u4ee4\u884c\u4e0e\u7ec8\u7aef\u8c03\u8bd5\u5de5\u5177<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>5.Nginx\u65e5\u5fd7\u76f8\u5173\u76ee\u5f55\u4e0e\u6587\u4ef6<\/h3>\n<table>\n<thead>\n<tr>\n<th><strong>\u8def\u5f84<\/strong><\/th>\n<th><strong>\u7c7b\u578b<\/strong><\/th>\n<th><strong>\u4f5c\u7528<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/var\/log\/nginx<\/td>\n<td>\u76ee\u5f55<\/td>\n<td>Nginx\u9ed8\u8ba4\u5b58\u653e\u65e5\u5fd7\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/logrotate.d\/nginx<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Nginx\u9ed8\u8ba4\u7684\u65e5\u5fd7\u5207\u5272<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e94\u3001nginx\u914d\u7f6e\u6587\u4ef6<\/h2>\n<h2><\/h2>\n<pre><code class=\"language-bash\">Nginx\u4e3b\u914d\u7f6e\u6587\u4ef6\/etc\/nginx\/nginx.conf\u662f\u4e00\u4e2a\u7eaf\u6587\u672c\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u6574\u4e2a\u914d\u7f6e\u6587\u4ef6\u662f\u4ee5\u533a\u5757\u7684\u5f62\u5f0f\u7ec4\u7ec7\u7684\u3002\u4e00\u822c\uff0c\u6bcf\u4e2a\u533a\u5757\u4ee5\u4e00\u5bf9\u5927\u62ec\u53f7{}\u6765\u8868\u793a\u5f00\u59cb\u4e0e\u7ed3\u675f\u3002\n\nNginx\u4e3b\u914d\u7f6e\u6587\u4ef6\u6574\u4f53\u5206\u4e3a\u4e09\u5757\u8fdb\u884c\u5b66\u4e60\uff0c\u5206\u522b\u662fCoreModule(\u6838\u5fc3\u6a21\u5757)\uff0cEventModule(\u4e8b\u4ef6\u9a71\u52a8\u6a21\u5757)\uff0cHttpCoreModule(http\u5185\u6838\u6a21\u5757)<\/code><\/pre>\n<h3>1.\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# cat \/etc\/nginx\/nginx.conf \n#########################\u6838\u5fc3\u6a21\u5757####################\n#\u6307\u5b9a\u542f\u52a8\u7684\u7528\u6237\nuser  www;\n#nginx\u7684worker\u8fdb\u7a0b\u7684\u6570\u91cf\nworker_processes  1;\n#\u6307\u5b9a\u9519\u8bef\u65e5\u5fd7\u5b58\u653e\u7684\u8def\u5f84\u4ee5\u53ca\u8bb0\u5f55\u7684\u7ea7\u522b debug\/info\/notice\/warn\/error\/emerg\nerror_log  \/var\/log\/nginx\/error.log warn;\n#\u6307\u5b9apid\u6587\u4ef6\npid        \/var\/run\/nginx.pid;\n\n########################\u4e8b\u4ef6\u9a71\u52a8\u6a21\u5757#################\nevents {\n    #\u6bcf\u4e2aworker\u5de5\u4f5c\u8fdb\u7a0b\u7684\u6700\u5927\u8fde\u63a5\u6570\n    worker_connections  1024;\n}\n\n######################http\u5185\u6838\u6a21\u5757###################\nhttp {\n    #\u5305\u542b\uff0cnginx\u53ef\u8bc6\u522b\u7684\u6587\u4ef6\u7c7b\u578b\n    include       \/etc\/nginx\/mime.types;\n    #\u5f53nginx\u4e0d\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b\u7684\u65f6\u5019\uff0c\u9ed8\u8ba4\u4e0b\u8f7d\n    default_type  application\/octet-stream;\n    #\u6307\u5b9a\u65e5\u5fd7\u683c\u5f0f\uff0c\u65e5\u5fd7\u683c\u5f0f\u8d77\u4e2a\u540d\u5b57\n    log_format  main  &#039;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#039;\n                      &#039;$status $body_bytes_sent &quot;$http_referer&quot; &#039;\n                      &#039;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#039;;\n    #\u6307\u5b9a\u8bbf\u95ee\u65e5\u5fd7\u5b58\u50a8\u8def\u5f84\u4e0e\u683c\u5f0f\n    access_log  \/var\/log\/nginx\/access.log  main;\n    #\u9ad8\u6548\u4f20\u8f93\n    sendfile        on;\n    #\u9ad8\u6548\u4f20\u8f93\n    #tcp_nopush     on;\n    #\u5f00\u542f\u957f\u8fde\u63a5\n    keepalive_timeout  65;\n    #\u5f00\u542f\u538b\u7f29\n    #gzip  on;\n    #\u5305\u542b\u7f51\u7ad9\u7684\u914d\u7f6e\u6587\u4ef6\n    include \/etc\/nginx\/conf.d\/*.conf;\n\n    #\u4e00\u4e2aserver\u8868\u793a\u4e00\u4e2a\u7f51\u7ad9\n    server {\n        #\u76d1\u542c\u7aef\u53e3\n        listen       80;\n        #\u7f51\u7ad9\u63d0\u4f9b\u7684\u57df\u540d\n        server_name  localhost;\n        #\u5b57\u7b26\u96c6\n        charset utf8;\n        #\u5339\u914d\u3001\u63a7\u5236\u8bbf\u95ee\u7684\u7f51\u7ad9\u7ad9\u70b9\n        location \/ {\n            #\u6307\u5b9a\u7ad9\u70b9\u76ee\u5f55\n            root   \/usr\/share\/nginx\/html;\n            #\u6307\u5b9a\u9ed8\u8ba4\u8bbf\u95ee\u7684\u9875\u9762\n            index  index.html index.htm;\n        }\n    }\n}<\/code><\/pre>\n<h2>\u516d\u3001\u642d\u5efa\u5c0f\u6e38\u620f<\/h2>\n<h3>1.\u7f16\u5199\u53f2\u4e0a\u6700\u7b80\u5355\u914d\u7f6e<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# vim \/etc\/nginx\/conf.d\/game.conf\nserver {\n    listen 80;\n    server_name localhost;\n    #server_name www.game.com;\n\n    location \/ {\n        root \/code\/tuixiangzi;\n        index index.html;\n    }\n}<\/code><\/pre>\n<h3>2.\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6<\/h3>\n<pre><code class=\"language-bash\">[root@web01 code]# nginx -t\nnginx: [warn] conflicting server name &quot;localhost&quot; on 0.0.0.0:80, ignored\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\n\n#\u56e0\u4e3a\u7f51\u7ad9\u51b2\u7a81\n[root@web01 code]# mv \/etc\/nginx\/conf.d\/default.conf \/tmp\/<\/code><\/pre>\n<h3>3.\u521b\u5efa\u7ad9\u70b9\u76ee\u5f55<\/h3>\n<pre><code class=\"language-bash\">[root@web01 ~]# mkdir \/code\/<\/code><\/pre>\n<h3>4.\u4e0a\u4f20\u4ee3\u7801\u5305<\/h3>\n<pre><code class=\"language-bash\">[root@web01 code]# rz\n[root@web01 code]# unzip tuixiangzi.zip\n[root@web01 code]# mv HTML5 canvas\u5c0f\u4eba\u63a8\u7bb1\u5b50\u5c0f\u6e38\u620f tuixinagzi<\/code><\/pre>\n<h3>4\uff09\u91cd\u8f7dnginx<\/h3>\n<pre><code class=\"language-bash\">[root@web01 code]# systemctl restart nginx<\/code><\/pre>\n<h3>6.\u8bbf\u95ee\u9875\u9762\u73a9\u6e38\u620f<\/h3>\n<h2>\u4e03\u3001\u518d\u642d\u5efa\u4e00\u4e2a\u6e38\u620f<\/h2>\n<h3>1.\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/h3>\n<pre><code class=\"language-bash\">[root@web01 code]# vim \/etc\/nginx\/conf.d\/gametwo.conf \nserver {\n    listen 80;\n    server_name www.tank.com;\n\n    location \/ {\n        root \/code\/tank;\n        index index.html;\n    }\n}\n\n[root@web01 code]# nginx -t\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\n\n[root@web01 code]# systemctl restart nginx<\/code><\/pre>\n<h3>2.\u4e0a\u4f20\u4ee3\u7801<\/h3>\n<pre><code class=\"language-bash\">[root@web01 code]# cd \/code\/\n[root@web01 code]# rz\n[root@web01 code]# unzip tankedazhan.zip\n[root@web01 code]# mv jQuery\u5766\u514b\u5927\u6218\u7f51\u9875\u5c0f\u6e38\u620f tank<\/code><\/pre>\n<h3>3.\u914d\u7f6ewindows\u4e0b\u7684hosts<\/h3>\n<pre><code class=\"language-bash\">\u4f4d\u7f6e\uff1aC:\\Windows\\System32\\drivers\\etc\n10.0.0.7 www.game.com www.tank.com<\/code><\/pre>\n<h2>\u4f5c\u4e1a\uff1a<\/h2>\n<pre><code class=\"language-bash\">1.\u51c6\u5907\u4e09\u53f0\u673a\u5668\uff0c\u4f7f\u7528\u4e09\u79cd\u65b9\u5f0f\u642d\u5efanginx\n2.\u5728\u4e09\u53f0nginx\u4e0a\u5206\u522b\u642d\u5efa\u4e09\u4e2a\u5c0f\u6e38\u620f<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx web\u57fa\u7840 \u4e00\u3001Nginx\u4ecb\u7ecd 1\u3001\u6982\u8ff0 Nginx\u662f\u4e00\u4e2a\u5f00\u6e90\u4e14\u9ad8\u6027\u80fd\u3001\u53ef\u9760\u7684http web\u670d\u52a1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":319,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[21,19,58,22,57,20],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/318"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=318"}],"version-history":[{"count":1,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/318\/revisions"}],"predecessor-version":[{"id":8760,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/318\/revisions\/8760"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/media\/319"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}