{"id":32944,"date":"2023-01-09T22:15:05","date_gmt":"2023-05-24T22:40:30","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/"},"modified":"2024-04-29T09:16:11","modified_gmt":"2024-04-29T01:16:11","slug":"%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/","title":{"rendered":"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55."},"content":{"rendered":"<p>\u5728\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1Nginx\u65f6\uff0c\u6211\u5e0c\u671b\u5c3d\u53ef\u80fd\u6307\u5b9a\u4e0e\u8f6f\u4ef6\u5305\u76f8\u9002\u5e94\u7684\u7f16\u8bd1\u9009\u9879\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u7b14\u8bb0\u3002<br \/>\n\u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u8bb0\u5f55\uff0c\u5982\u679c\u6709\u9519\u522b\u5b57\u8bf7\u8c05\u89e3\u3002\u6b22\u8fce\u63d0\u51fa\u6539\u8fdb\u610f\u89c1\u6216\u8bbd\u523a\u3002<br \/>\n\u6211\u66f4\u5e0c\u671b\u80fd\u6709\u5176\u4ed6\u66f4\u597d\u7684\u65b9\u6cd5\uff0c\u5982\u679c\u6709\u7684\u8bdd\uff0c\u8bf7\u52a1\u5fc5\u544a\u8bc9\u6211\uff01\u8c22\u8c22\uff01<\/p>\n<p>\u5982\u679c\u60a8\u6025\u9700\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u4e09\u4e2ayum\uff0c\u5e94\u8be5\u53ef\u4ee5\u83b7\u53d6\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<pre class=\"post-pre\"><code># yum groupinstall \"Development Tools\"\r\n# yum install pcre-devel openssl-devel libxslt-devel gd-devel perl-ExtUtils-Embed epel-release\r\n# yum install GeoIP-devel\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u9700\u8981\u4eceepel\u83b7\u53d6GeoIP-devel\uff0c\u56e0\u6b64\u9700\u8981\u63d0\u524d\u5b89\u88c5epel-release\u5e76\u6dfb\u52a0\u4ed3\u5e93\u3002<\/p>\n<h1>\u73af\u5883 &#8211;<\/h1>\n<p>CentOS 7<br \/>\n\u6700\u5c0f\u5b89\u88c5<br \/>\n\u6211\u53ea\u5b89\u88c5\u4e86vim\u548cscreen\uff08\u54c8\u54c8\uff09<\/p>\n<h1>\u5b89\u88c5\u989d\u5916\u7684\u8f6f\u4ef6\u5305<\/h1>\n<p>\u7531\u4e8egcc\u7b49\u5f88\u9ebb\u70e6\uff0c\u6211\u9009\u62e9\u4f7f\u7528DevelopmentTools\u8fdb\u884c\u6279\u91cf\u5b89\u88c5\u3002<br \/>\n\u5bf9\u4e8e\u4ecd\u7136\u7f3a\u5c11\u7684\u5e93\uff0c\u6211\u4f1a\u9010\u4e2a\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum groupinstall \"Development Tools\"\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5\u9884\u6784\u5efa\u8f6f\u4ef6\u5305<\/h1>\n<p>\u4e3a\u4e86\u786e\u8ba4configure\u9009\u9879\uff0c\u5148\u5b89\u88c5\u9884\u7f16\u8bd1\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>\u6dfb\u52a0nginx\u5b58\u50a8\u5e93\uff08\u6b64\u6b21\u4e3aCentOS7\u7248\u672c\uff09<\/p>\n<pre class=\"post-pre\"><code># cat &gt; \/etc\/yum.repos.d\/nginx.repo\r\n\r\n[nginx]\r\nname=nginx repo\r\nbaseurl=http:\/\/nginx.org\/packages\/mainline\/centos\/7\/$basearch\/\r\ngpgcheck=0\r\nenabled=1\r\n<\/code><\/pre>\n<p>\u4f7f\u7528yum\u8fdb\u884c\u5b89\u88c5<\/p>\n<pre class=\"post-pre\"><code># yum install nginx\r\n<\/code><\/pre>\n<h1>\u786e\u8ba4configure\u9009\u9879<\/h1>\n<pre class=\"post-pre\"><code># nginx -V\r\nnginx version: nginx\/1.9.13\r\nbuilt by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) \r\nbuilt with OpenSSL 1.0.1e-fips 11 Feb 2013\r\nTLS SNI support enabled\r\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-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_perl_module=dynamic --add-dynamic-module=njs-91543c86f412\/nginx --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --with-ld-opt=-Wl,-E\r\n<\/code><\/pre>\n<h1>\u51c6\u5907nginx\u7684\u6e90\u4ee3\u7801\u6587\u4ef6<\/h1>\n<p>\u8bf7\u4e0b\u8f7d\u4e0e\u201cPre-Built Packages\u4e2d\u53ef\u5b89\u88c5\u7684\u7248\u672c\u4e00\u81f4\u201d\u7684tar.gz\u7248\u672c\u3002<\/p>\n<p>nginx: \u4e0b\u8f7d<br \/>\nhttp:\/\/nginx.org\/en\/download.html<\/p>\n<p>\u672c\u6b21\u83b7\u53d6Mainline\u7248\u672c\u7684\u300cnginx-1.9.13\u300d\uff0c\u5e76\u5c06\u5176\u653e\u7f6e\u5728\/usr\/local\/src\u76ee\u5f55\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# curl -L -O http:\/\/nginx.org\/download\/nginx-1.9.13.tar.gz\r\n<\/code><\/pre>\n<p>\u914d\u7f6e\u5b8c\u6210\u5f8c\u5373\u53ef\u5c55\u958b\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# tar zxvf .\/nginx-1.9.13.tar.gz\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u5305\u88c5\u7248\u662f\u4ee5\u52a8\u6001\u6a21\u5757\u7684\u5f62\u5f0f\u52a0\u8f7dnginScript\uff08njs\uff09\uff0c\u6240\u4ee5\u63d0\u524d\u51c6\u5907njs\u4e5f\u662f\u5fc5\u8981\u7684\u3002<br \/>\n\u203b\u6839\u636enginx\u7684\u6784\u5efa\u7248\u672c\uff0cnjs\u7684\u7248\u672c\u4e5f\u53ef\u80fd\u4e0d\u540c\uff0c\u56e0\u6b64\u9700\u8981\u51c6\u5907\u6240\u9700\u7684njs\u6765\u7f16\u8bd1\u5e0c\u671b\u7684nginx\u3002\uff08\u6211\u66fe\u88ab\u8fd9\u4e2a\u95ee\u9898\u5361\u4f4f\u8fc7\u4e00\u4e0b\uff0c\u54c8\u54c8\uff09<\/p>\n<pre class=\"post-pre\"><code># curl -L -O http:\/\/hg.nginx.org\/njs\/archive\/tip.tar.gz\r\n# tar zxvf .\/tip.tar.gz\r\n# mv .\/njs-91543c86f412 .\/nginx-1.9.13\r\n# cd .\/nginx-1.9.13\/njs-91543c86f412\r\n# .\/configure \r\n<\/code><\/pre>\n<p>\u5176\u5b9e\uff0c\u7b26\u5408\u5e38\u89c4\u7684\u505a\u6cd5\u5e94\u8be5\u662f\u4eceMercurial\u4ed3\u5e93\u8fdb\u884c\u514b\u9686\uff0c\u4e0d\u8fc7\u4e3a\u4e86\u907f\u514d\u9ebb\u70e6\uff0c\u6211\u9009\u62e9\u76f4\u63a5\u4e0b\u8f7dtar.gz\u6587\u4ef6\u6765\u5e94\u4ed8\u54c8\u54c8\u3002<\/p>\n<p>\u8fdb\u884c\u914d\u7f6e<\/p>\n<pre class=\"post-pre\"><code># .\/configure                                                                                                               \r\nconfiguring for Linux 3.10.0-327.13.1.el7.x86_64 x86_64\r\nchecking for C compiler: cc\r\n + using GNU C compiler\r\n + gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) \r\nchecking for posix_memalign() ... found\r\nchecking for getrandom() ... not found\r\n\r\n.\/auto\/configure: error: no PCRE library found.\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u7f3a\u5c11PCRE\uff0c\u6211\u51b3\u5b9a\u4f7f\u7528yum\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install pcre-devel\r\n<\/code><\/pre>\n<p>\u91cd\u65b0\u914d\u7f6e<\/p>\n<pre class=\"post-pre\"><code># .\/configure                                                                                                          \r\nconfiguring for Linux 3.10.0-327.13.1.el7.x86_64 x86_64\r\nchecking for C compiler: cc\r\n + using GNU C compiler\r\n + gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) \r\nchecking for posix_memalign() ... found\r\nchecking for getrandom() ... not found\r\nchecking for PCRE library ... found\r\n + PCRE version: 8.32\r\n<\/code><\/pre>\n<p>\u786e\u8ba4\u6ca1\u6709\u9519\u8bef\u540e\u8fdb\u884cmake\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code># make\r\n(\u7701\u7565)\r\n<\/code><\/pre>\n<p>\u786e\u8ba4make\u6ca1\u6709\u9519\u8bef\uff0c\u7136\u540e\u8fd4\u56de\u5230nginx\u7684\u76ee\u5f55\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code># cd ..\/\r\n<\/code><\/pre>\n<p>nginx\u7684\u7b2c\u4e00\u4e2aconfigure\u9009\u9879<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\\r\n --prefix=\/etc\/nginx \\\r\n --sbin-path=\/usr\/sbin\/nginx \\\r\n --modules-path=\/usr\/lib64\/nginx\/modules \\\r\n --conf-path=\/etc\/nginx\/nginx.conf \\\r\n --error-log-path=\/var\/log\/nginx\/error.log \\\r\n --http-log-path=\/var\/log\/nginx\/access.log \\\r\n --pid-path=\/var\/run\/nginx.pid \\\r\n --lock-path=\/var\/run\/nginx.lock \\\r\n --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp \\\r\n --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp \\\r\n --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp \\\r\n --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp \\\r\n --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp \\\r\n --user=nginx \\\r\n --group=nginx \\\r\n --with-http_ssl_module \\\r\n --with-http_realip_module \\\r\n --with-http_addition_module \\\r\n --with-http_sub_module \\\r\n --with-http_dav_module \\\r\n --with-http_flv_module \\\r\n --with-http_mp4_module \\\r\n --with-http_gunzip_module \\\r\n --with-http_gzip_static_module \\\r\n --with-http_random_index_module \\\r\n --with-http_secure_link_module \\\r\n --with-http_stub_status_module \\\r\n --with-http_auth_request_module \\\r\n --with-http_xslt_module=dynamic \\\r\n --with-http_image_filter_module=dynamic \\\r\n --with-http_geoip_module=dynamic \\\r\n --with-http_perl_module=dynamic \\\r\n --add-dynamic-module=njs-91543c86f412\/nginx \\\r\n --with-threads \\\r\n --with-stream \\\r\n --with-stream_ssl_module \\\r\n --with-http_slice_module \\\r\n --with-mail \\\r\n --with-mail_ssl_module \\\r\n --with-file-aio \\\r\n --with-ipv6 \\\r\n --with-http_v2_module \\\r\n --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' \\\r\n --with-ld-opt=-Wl,-E\r\n\r\n(\u4e2d\u7565)\r\nchecking for PCRE library ... found\r\nchecking for PCRE JIT support ... found\r\nchecking for OpenSSL library ... not found\r\nchecking for OpenSSL library in \/usr\/local\/ ... not found\r\nchecking for OpenSSL library in \/usr\/pkg\/ ... not found\r\nchecking for OpenSSL library in \/opt\/local\/ ... not found\r\n\r\n.\/configure: error: SSL modules require the OpenSSL library.\r\nYou can either do not enable the modules, or install the OpenSSL library\r\ninto the system, or build the OpenSSL library statically from the source\r\nwith nginx by using --with-openssl=&lt;path&gt; option.\r\n<\/code><\/pre>\n<p>\u5728\u4e2d\u56fd\uff0c\u627e\u4e0d\u5230\u4e0eOpenSSL\u76f8\u5173\u7684\u5e93\u3002<br \/>\n\u4f7f\u7528yum\u5b89\u88c5OpenSSL\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install openssl-devel\r\n<\/code><\/pre>\n<p>\u518d\u8bd5\u4e00\u6b21 sh\u00ec<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\ (\u4ee5\u4e0b\u7565)\r\n(\u4e2d\u7565)\r\nchecking for libxslt ... not found\r\nchecking for libxslt in \/usr\/local\/ ... not found\r\nchecking for libxslt in \/usr\/pkg\/ ... not found\r\nchecking for libxslt in \/opt\/local\/ ... not found\r\n\r\n.\/configure: error: the HTTP XSLT module requires the libxml2\/libxslt\r\nlibraries. You can either do not enable the module or install the libraries.\r\n<\/code><\/pre>\n<p>\u56e0\u4e3a\u88ab\u544a\u77e5\u6ca1\u6709libxslt\uff0c\u6240\u4ee5\u4f7f\u7528yum\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install libxslt-devel\r\n<\/code><\/pre>\n<p>\u518d\u4e09\u5c1d\u8bd5<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\ (\u4ee5\u4e0b\u7565)\r\n(\u4e2d\u7565)\r\nchecking for GD library ... not found\r\nchecking for GD library in \/usr\/local\/ ... not found\r\nchecking for GD library in \/usr\/pkg\/ ... not found\r\nchecking for GD library in \/opt\/local\/ ... not found\r\n\r\n.\/configure: error: the HTTP image filter module requires the GD library.\r\nYou can either do not enable the module or install the libraries.\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\u662fGD\u554a&#8230; \u5728yum\u4e0a\u5feb\u901f\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install gd-devel\r\n<\/code><\/pre>\n<p>\u518d\u8bd5\u4e00\u6b21<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\ (\u4ee5\u4e0b\u7565)\r\n(\u4e2d\u7565)\r\nchecking for perl\r\n + perl version: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi\r\nCan't locate ExtUtils\/Embed.pm in @INC (@INC contains: \/usr\/local\/lib64\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib64\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib64\/perl5 \/usr\/share\/perl5 .).\r\nBEGIN failed--compilation aborted.\r\n\r\n.\/configure: error: perl module ExtUtils::Embed is required\r\n<\/code><\/pre>\n<p>\u5982\u679c\u7f3a\u5c11perl\u6a21\u5757&#8230;\u8fd9\u4e5f\u53ef\u4ee5\u901a\u8fc7yum\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install perl-ExtUtils-Embed\r\n<\/code><\/pre>\n<p>\u518d\u8bd5\u4e00\u6b21<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\ (\u4ee5\u4e0b\u7565)\r\n(\u4e2d\u7565)\r\nchecking for GeoIP library ... not found\r\nchecking for GeoIP library in \/usr\/local\/ ... not found\r\nchecking for GeoIP library in \/usr\/pkg\/ ... not found\r\nchecking for GeoIP library in \/opt\/local\/ ... not found\r\n\r\n.\/configure: error: the GeoIP module requires the GeoIP library.\r\nYou can either do not enable the module or install the library.\r\n<\/code><\/pre>\n<p>\u867d\u7136\u611f\u89c9\u770b\u4e0d\u5230\u5c3d\u5934\uff0c\u4f46\u8fd8\u662f\u91cd\u65b0\u96c6\u4e2d\u7cbe\u529b\uff0c\u5728yum\u4e2d\u5b89\u88c5GeoIP\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install GeoIP-devel\r\n<\/code><\/pre>\n<p>\u518d\u6b21\u5c1d\u8bd5 c\u00ec<\/p>\n<pre class=\"post-pre\"><code># .\/configure \\ (\u4ee5\u4e0b\u7565)\r\n(\u4e2d\u7565)\r\ncreating objs\/Makefile\r\n\r\nConfiguration summary\r\n  + using threads\r\n  + using system PCRE library\r\n  + using system OpenSSL library\r\n  + md5: using OpenSSL library\r\n  + sha1: using OpenSSL library\r\n  + using system zlib library\r\n\r\n  nginx path prefix: \"\/etc\/nginx\"\r\n  nginx binary file: \"\/usr\/sbin\/nginx\"\r\n  nginx modules path: \"\/usr\/lib64\/nginx\/modules\"\r\n  nginx configuration prefix: \"\/etc\/nginx\"\r\n  nginx configuration file: \"\/etc\/nginx\/nginx.conf\"\r\n  nginx pid file: \"\/var\/run\/nginx.pid\"\r\n  nginx error log file: \"\/var\/log\/nginx\/error.log\"\r\n  nginx http access log file: \"\/var\/log\/nginx\/access.log\"\r\n  nginx http client request body temporary files: \"\/var\/cache\/nginx\/client_temp\"\r\n  nginx http proxy temporary files: \"\/var\/cache\/nginx\/proxy_temp\"\r\n  nginx http fastcgi temporary files: \"\/var\/cache\/nginx\/fastcgi_temp\"\r\n  nginx http uwsgi temporary files: \"\/var\/cache\/nginx\/uwsgi_temp\"\r\n  nginx http scgi temporary files: \"\/var\/cache\/nginx\/scgi_temp\"\r\n<\/code><\/pre>\n<p>\u901a\u904e\u4e86\uff01<\/p>\n<h1>\u4f7f\u7528Nginx\u8fdb\u884c\u7f16\u8bd1\u548c\u5b89\u88c5<\/h1>\n<p>\u8f7b\u677e\u5730<\/p>\n<pre class=\"post-pre\"><code># make\r\n# make install\r\n<\/code><\/pre>\n<p>\u5b8c\u4e86\uff01 !) -&gt; \u5662\u4e0d\u597d\u4e86\uff01 (\u014d b\u00f9 le!)<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0ngx_cache_purge\u6a21\u5757\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5355\u72ec\u5220\u9664nginx\u7f13\u5b58\u3002<\/p>\n<h1>\u5c55\u5f00 ngx_cache_purge \u7684\u6e90\u4ee3\u7801\u3002<\/h1>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# curl -L -O http:\/\/labs.frickle.com\/files\/ngx_cache_purge-2.3.tar.gz\r\n# tar zxvf .\/ngx_cache_purge-2.3.tar.gz \r\n<\/code><\/pre>\n<h1>\u91cd\u65b0\u914d\u7f6enginx<\/h1>\n<pre class=\"post-pre\"><code># cd .\/nginx-1.9.13\r\n# .\/configure \\\r\n --prefix=\/etc\/nginx \\\r\n --sbin-path=\/usr\/sbin\/nginx \\\r\n --modules-path=\/usr\/lib64\/nginx\/modules \\\r\n --conf-path=\/etc\/nginx\/nginx.conf \\\r\n --error-log-path=\/var\/log\/nginx\/error.log \\\r\n --http-log-path=\/var\/log\/nginx\/access.log \\\r\n --pid-path=\/var\/run\/nginx.pid \\\r\n --lock-path=\/var\/run\/nginx.lock \\\r\n --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp \\\r\n --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp \\\r\n --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp \\\r\n --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp \\\r\n --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp \\\r\n --user=nginx \\\r\n --group=nginx \\\r\n --with-http_ssl_module \\\r\n --with-http_realip_module \\\r\n --with-http_addition_module \\\r\n --with-http_sub_module \\\r\n --with-http_dav_module \\\r\n --with-http_flv_module \\\r\n --with-http_mp4_module \\\r\n --with-http_gunzip_module \\\r\n --with-http_gzip_static_module \\\r\n --with-http_random_index_module \\\r\n --with-http_secure_link_module \\\r\n --with-http_stub_status_module \\\r\n --with-http_auth_request_module \\\r\n --with-http_xslt_module=dynamic \\\r\n --with-http_image_filter_module=dynamic \\\r\n --with-http_geoip_module=dynamic \\\r\n --with-http_perl_module=dynamic \\\r\n --add-dynamic-module=njs-91543c86f412\/nginx \\\r\n --with-threads \\\r\n --with-stream \\\r\n --with-stream_ssl_module \\\r\n --with-http_slice_module \\\r\n --with-mail \\\r\n --with-mail_ssl_module \\\r\n --with-file-aio \\\r\n --with-ipv6 \\\r\n --with-http_v2_module \\\r\n --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' \\\r\n --with-ld-opt=-Wl,-E \\\r\n --add-module=..\/ngx_cache_purge-2.3\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u4fdd\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n<h1>\u91cd\u65b0\u7f16\u8bd1\u548c\u5b89\u88c5nginx\u3002<\/h1>\n<p>\u7531\u4e8e\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u56e0\u6b64\u9700\u8981\u8fdb\u884c\u4e00\u6b21\u6e05\u7406\u5de5\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code># make clean\r\n# make\r\n# make install\r\n<\/code><\/pre>\n<h1>\u786e\u8ba4\u662f\u5426\u7f16\u8bd1\u4e86nginx<\/h1>\n<pre class=\"post-pre\"><code># nginx -V\r\nnginx version: nginx\/1.9.13\r\nbuilt by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)\r\nbuilt with OpenSSL 1.0.1e-fips 11 Feb 2013\r\nTLS SNI support enabled\r\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-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_perl_module=dynamic --add-dynamic-module=njs-91543c86f412\/nginx --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --with-ld-opt=-Wl,-E --add-module=..\/ngx_cache_purge-2.3\r\n<\/code><\/pre>\n<p>&#8211;\u65b0\u589e\u4e86..\/ngx_cache_purge-2.3\u6a21\u5757\uff01<\/p>\n<p>\u5f85\u65e5\u53ef\u89c1<\/p>\n<h1>\u4f7f\u7528SRPM\u8fdb\u884c\u91cd\u65b0\u6784\u5efa\u548c\u6253\u5305\u3002<\/h1>\n<p>\u4ece\u6e90\u4ee3\u7801\u5b89\u88c5\uff0c\u76f8\u6bd4\u4e8e\u56fa\u5b9a\u4e8c\u8fdb\u5236\u5305\u7248\u672c\uff0c\u66f4\u5bb9\u6613\u5b9a\u5236\uff0c\u4f46\u4e0d\u9002\u5408\u5927\u89c4\u6a21\u90e8\u7f72\u3002<br \/>\n\u55ef\uff0c\u867d\u7136\u4e5f\u53ef\u4ee5\u505a\uff0c\u4f46\u7f16\u8bd1\u4f1a\u6d6a\u8d39\u5f88\u591a\u65f6\u95f4\u3002<br \/>\n\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u5c06\u5b9a\u5236\u7684\u5185\u5bb9\u6253\u5305\u66f4\u5feb\u6377\u4e14\u66f4\u5bb9\u6613\u7ba1\u7406\u3002<br \/>\n\u4f46\u662f\uff0c\u8003\u8651\u5230\u540e\u7eed\u7248\u672c\u5347\u7ea7\u7684\u95ee\u9898\uff0c\u5fc5\u987b\u59a5\u5584\u4fdd\u5b58spec\u6587\u4ef6\u7b49\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u88ab\u540e\u4eba\u62b1\u6028\u3002<\/p>\n<h1>\u51c6\u5907\u9171\u6cb9<\/h1>\n<p>\u7531\u4e8enginx\u5b98\u65b9\u63d0\u4f9b\u4e86SRPM\u5305\uff0c\u56e0\u6b64\u53ef\u4ee5\u4e0b\u8f7d\u8be5\u5305\u3002<br \/>\nhttp:\/\/nginx.org\/packages\/mainline\/centos\/7\/SRPMS\/nginx-1.9.13-1.el7.ngx.src.rpm<\/p>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# curl -L -O http:\/\/nginx.org\/packages\/mainline\/centos\/7\/SRPMS\/nginx-1.9.13-1.el7.ngx.src.rpm\r\n<\/code><\/pre>\n<p>\u5199\u4e86\u4e00\u70b9\u70b9\u5c31\u4fdd\u5b58\u4e86(\u7b11)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1Nginx\u65f6\uff0c\u6211\u5e0c\u671b\u5c3d\u53ef\u80fd\u6307\u5b9a\u4e0e\u8f6f\u4ef6\u5305\u76f8\u9002\u5e94\u7684\u7f16\u8bd1\u9009\u9879\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u7b14\u8bb0\u3002 \u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u8bb0\u5f55\uff0c [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32944","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55. - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1anginx\u7f16\u8bd1\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55.\" \/>\n<meta property=\"og:description\" content=\"\u5728\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1Nginx\u65f6\uff0c\u6211\u5e0c\u671b\u5c3d\u53ef\u80fd\u6307\u5b9a\u4e0e\u8f6f\u4ef6\u5305\u76f8\u9002\u5e94\u7684\u7f16\u8bd1\u9009\u9879\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u7b14\u8bb0\u3002 \u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u8bb0\u5f55\uff0c [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1anginx\u7f16\u8bd1\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-24T22:40:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T01:16:11+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/\",\"name\":\"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55. - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-24T22:40:30+00:00\",\"dateModified\":\"2024-04-29T01:16:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55. - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1anginx\u7f16\u8bd1\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55.","og_description":"\u5728\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1Nginx\u65f6\uff0c\u6211\u5e0c\u671b\u5c3d\u53ef\u80fd\u6307\u5b9a\u4e0e\u8f6f\u4ef6\u5305\u76f8\u9002\u5e94\u7684\u7f16\u8bd1\u9009\u9879\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u7b14\u8bb0\u3002 \u8fd9\u662f\u6211\u4e2a\u4eba\u7684\u8bb0\u5f55\uff0c [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1anginx\u7f16\u8bd1\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-24T22:40:30+00:00","article_modified_time":"2024-04-29T01:16:11+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/","name":"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55. - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-24T22:40:30+00:00","dateModified":"2024-04-29T01:16:11+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u4e2d\u56fd\u4eba\u7684\u6bcd\u8bed\u4e2d\uff0c\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u91ca\u4e49\uff1aNginx\u7f16\u8bd1\u5907\u5fd8\u5f55."}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%b8%ad%e5%9b%bd%e4%ba%ba%e7%9a%84%e6%af%8d%e8%af%ad%e4%b8%ad%ef%bc%8c%e5%af%b9%e4%bb%a5%e4%b8%8b%e5%86%85%e5%ae%b9%e8%bf%9b%e8%a1%8c%e9%87%8a%e4%b9%89%ef%bc%9anginx%e7%bc%96%e8%af%91\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32944"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32944\/revisions"}],"predecessor-version":[{"id":84385,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32944\/revisions\/84385"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}