{"id":32815,"date":"2022-12-04T15:33:15","date_gmt":"2023-06-12T21:07:01","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/"},"modified":"2024-01-15T07:31:15","modified_gmt":"2024-01-14T23:31:15","slug":"%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/","title":{"rendered":"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879"},"content":{"rendered":"<h1>nginx-build\u548cnginx\u7684configure\u9009\u9879<\/h1>\n<p>\u5728\u8fc7\u53bb\uff0c\u5982\u679c\u60f3\u8981\u5728nginx-build\u4e2d\u8be6\u7ec6\u6307\u5b9anginx\u7684configure\u9009\u9879\uff0c\u5219\u9700\u8981\u5355\u72ec\u51c6\u5907\u4e00\u4e2a\u6267\u884c.\/configure\u7684Shell\u811a\u672c\u6587\u4ef6\u3002\u662f\u7684\uff0c\u5c31\u50cf\u8fd9\u6837\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\">#!\/bin\/sh<\/span>\r\n\r\n.\/configure <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--sbin-path<\/span><span class=\"o\">=<\/span>\/usr\/sbin\/nginx <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--conf-path<\/span><span class=\"o\">=<\/span>\/etc\/nginx\/nginx.conf <span class=\"se\">\\<\/span>\r\n<\/code><\/pre>\n<p>\u8981\u5728nginx-build\u4e2d\u6267\u884c\u4e0a\u8ff0\u7684.\/configure\u547d\u4ee4\uff0c\u9700\u8981\u4f7f\u7528\u9009\u9879-c\u5e76\u63d0\u4f9b\u6b64shell\u811a\u672c\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"nt\">-c<\/span> nginx-configure\r\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u597d\u5904\u662f\u53ef\u4ee5\u5c06nginx\u7684\u6784\u5efa\u65b9\u6cd5\u4fdd\u5b58\u5728\u6587\u4ef6\u4e2d\uff0c\u4f46\u4e5f\u5f88\u9ebb\u70e6\u3002\u7531\u4e8enginx-build\u6700\u521d\u662f\u4e3a\u4e86\u65e0\u7f1d\u6784\u5efa\u548c\u5168\u9762\u7ba1\u7406\u51e0\u5341\u4e2a\u5b9e\u4f8b\u548c\u51e0\u79cd\u7c7b\u578b\u7684nginx\u800c\u5f00\u53d1\u7684\uff08\u5e76\u4e14\u6b63\u5728\u5f00\u53d1\u4e2d\uff09\uff0c\u6240\u4ee5\u5c06\u6784\u5efa\u811a\u672c\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\u662f\u5408\u7406\u7684\uff0c\u4f46\u6bd5\u7adf\u8fd8\u662f\u9ebb\u70e6\u3002\u6211\u5e0c\u671b\u80fd\u7b80\u5355\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--sbin-path<\/span><span class=\"o\">=<\/span>\/usr\/sbin\/nginx <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--conf-path<\/span><span class=\"o\">=<\/span>\/etc\/nginx\/nginx.conf <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--error-log-path<\/span><span class=\"o\">=<\/span>\/var\/log\/nginx\/error.log <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--pid-path<\/span><span class=\"o\">=<\/span>\/var\/run\/nginx.pid <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--lock-path<\/span><span class=\"o\">=<\/span>\/var\/lock\/nginx.lock <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-log-path<\/span><span class=\"o\">=<\/span>\/var\/log\/nginx\/access.log <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-client-body-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/body <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-proxy-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/proxy <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_stub_status_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-fastcgi-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/fastcgi <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-debug<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_gzip_static_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_spdy_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_ssl_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-pcre-jit<\/span> <span class=\"se\">\\<\/span>\r\n<\/code><\/pre>\n<h1>nginx\u6784\u5efa\u7248\u672c0.4.0<\/h1>\n<p>\u6240\u4ee5\uff0c\u4ece\u4eca\u5929\u53d1\u5e03\u7684nginx-0.4.0\u7248\u672c\u5f00\u59cb\uff0c\u73b0\u5728\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--sbin-path<\/span><span class=\"o\">=<\/span>\/usr\/sbin\/nginx <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--conf-path<\/span><span class=\"o\">=<\/span>\/etc\/nginx\/nginx.conf <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--error-log-path<\/span><span class=\"o\">=<\/span>\/var\/log\/nginx\/error.log <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--pid-path<\/span><span class=\"o\">=<\/span>\/var\/run\/nginx.pid <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--lock-path<\/span><span class=\"o\">=<\/span>\/var\/lock\/nginx.lock <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-log-path<\/span><span class=\"o\">=<\/span>\/var\/log\/nginx\/access.log <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-client-body-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/body <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-proxy-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/proxy <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_stub_status_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--http-fastcgi-temp-path<\/span><span class=\"o\">=<\/span>\/var\/lib\/nginx\/fastcgi <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-debug<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_gzip_static_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_spdy_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-http_ssl_module<\/span> <span class=\"se\">\\<\/span>\r\n<span class=\"nt\">--with-pcre-jit<\/span>\r\n<span class=\"go\">\r\nnginx-build: 0.4.0\r\nCompiler: gc go1.4.2\r\n2015\/06\/09 20:08:11 Download nginx-1.9.1.....\r\n2015\/06\/09 20:08:13 Extract nginx-1.9.1.tar.gz.....\r\n2015\/06\/09 20:08:13 Generate configure script for nginx-1.9.1.....\r\n2015\/06\/09 20:08:13 Configure nginx-1.9.1.....\r\n2015\/06\/09 20:08:19 Build nginx-1.9.1.....\r\n2015\/06\/09 20:08:23 Complete building nginx!\r\n\r\nnginx version: nginx\/1.9.1\r\nbuilt by clang 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)\r\nbuilt with OpenSSL 0.9.8zd 8 Jan 2015\r\nTLS SNI support enabled\r\nconfigure arguments: --with-cc-opt=-Wno-deprecated-declarations --http-proxy-temp-path=\/var\/lib\/nginx\/proxy --http-fastcgi-temp-path=\/var\/lib\/nginx\/fastcgi --conf-path=\/etc\/nginx\/nginx.conf --error-log-path=\/var\/log\/nginx\/error.log --pid-path=\/var\/run\/nginx.pid --http-log-path=\/var\/log\/nginx\/access.log --sbin-path=\/usr\/sbin\/nginx --lock-path=\/var\/lock\/nginx.lock --http-client-body-temp-path=\/var\/lib\/nginx\/body --with-http_spdy_module --with-http_stub_status_module --with-pcre-jit --with-http_ssl_module --with-http_gzip_static_module --with-debug\r\n\r\n2015\/06\/09 20:08:23 Enter the following command for install nginx.\r\n\r\n<\/span><span class=\"gp\">   $<\/span> <span class=\"nb\">cd <\/span>work\/1.9.1\/nginx-1.9.1\r\n<span class=\"gp\">   $<\/span> <span class=\"nb\">sudo <\/span>make <span class=\"nb\">install<\/span>\r\n<span class=\"gp\">$<\/span>\r\n<\/code><\/pre>\n<p>\u6b63\u786e\u5730\u914d\u7f6e\u53c2\u6570\u5e76\u4ecenginx-build\u6307\u5b9a\u7684\u9009\u9879\u4e2d\u6392\u5217\u3002<\/p>\n<h1>\u4f7f\u7528add-module\u5c06\u7b2c\u4e09\u65b9\u6a21\u5757\u96c6\u6210\u8fdb\u6765<\/h1>\n<p>\u901a\u8fc7\u4f7f\u7528&#8221;add-module&#8221;\u547d\u4ee4\uff0c\u53ef\u4ee5\u5c06\u7b2c\u4e09\u65b9\u6a21\u5757\u96c6\u6210\u5230\u7cfb\u7edf\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"nt\">--add-module<\/span><span class=\"o\">=<\/span>..\/nginx\/ngx_small_light\r\n<\/code><\/pre>\n<p>\u7136\u800c\uff0cnginx\u7684&#8211;add-module\u548c\u539f\u7248\u672c\u6709\u4e9b\u4e0d\u540c\u3002\u65e0\u6cd5\u50cf\u4ee5\u4e0b\u8fd9\u6837\u591a\u6b21\u4f7f\u7528&#8211;add-module\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"nt\">--add-module<\/span><span class=\"o\">=<\/span>..\/nginx\/ngx_small_light <span class=\"nt\">--add-module<\/span><span class=\"o\">=<\/span>..\/nginx\/ngx_dynamic_upstream\r\n<span class=\"go\">nginx-build: 0.4.0\r\nCompiler: gc go1.4.2\r\n2015\/06\/09 20:13:07 Download nginx-1.9.1.....\r\n2015\/06\/09 20:13:10 Extract nginx-1.9.1.tar.gz.....\r\n2015\/06\/09 20:13:10 Generate configure script for nginx-1.9.1.....\r\n2015\/06\/09 20:13:10 Configure nginx-1.9.1.....\r\n2015\/06\/09 20:13:15 Build nginx-1.9.1.....\r\n2015\/06\/09 20:13:18 Complete building nginx!\r\n\r\nnginx version: nginx\/1.9.1\r\nbuilt by clang 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)\r\nconfigure arguments: --with-cc-opt=-Wno-deprecated-declarations --add-module=\/Users\/bokko\/workspace\/nginx-build\/..\/nginx\/ngx_dynamic_upstream\r\n\r\n2015\/06\/09 20:13:18 Enter the following command for install nginx.\r\n\r\n<\/span><span class=\"gp\">   $<\/span> <span class=\"nb\">cd <\/span>work\/1.9.1\/nginx-1.9.1\r\n<span class=\"gp\">   $<\/span> <span class=\"nb\">sudo <\/span>make <span class=\"nb\">install<\/span>\r\n<span class=\"gp\">$<\/span>\r\n<\/code><\/pre>\n<p>\u5c3d\u7ba1\u6784\u5efaNginx\u6210\u529f\uff0c\u4f46\u53ea\u80fd\u4f7f\u7528 &#8211;add-module \u9009\u9879\u4e00\u6b21\u3002\u8fd9\u662f\u7531\u4e8eNginx-Build\u4f7f\u7528\u7684flag\u5305\u7684\u9650\u5236\u6240\u81f4\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0cNginx-Build\u5df2\u7ecf\u505a\u51fa\u4e86\u4e00\u79cd\u89e3\u51b3\u65b9\u6848\uff0c\u5373\u4f7f\u5728 &#8211;add-module \u9009\u9879\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u9017\u53f7\u5206\u9694\u6307\u5b9a\u591a\u4e2a\u6a21\u5757\u8def\u5f84\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> nginx-build <span class=\"nt\">-d<\/span> work <span class=\"nt\">--add-module<\/span><span class=\"o\">=<\/span>..\/nginx\/ngx_small_light,..\/nginx\/ngx_dynamic_upstream\r\n<span class=\"go\">nginx-build: 0.4.0\r\nCompiler: gc go1.4.2\r\n2015\/06\/09 20:15:14 Download nginx-1.9.1.....\r\n2015\/06\/09 20:15:17 Extract nginx-1.9.1.tar.gz.....\r\n2015\/06\/09 20:15:17 Generate configure script for nginx-1.9.1.....\r\n2015\/06\/09 20:15:17 Configure nginx-1.9.1.....\r\n2015\/06\/09 20:15:22 Build nginx-1.9.1.....\r\n2015\/06\/09 20:15:25 Complete building nginx!\r\n\r\nnginx version: nginx\/1.9.1\r\nbuilt by clang 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)\r\nconfigure arguments: --with-cc-opt=-Wno-deprecated-declarations --add-module=\/Users\/bokko\/workspace\/nginx-build\/..\/nginx\/ngx_small_light --add-module=\/Users\/bokko\/workspace\/nginx-build\/..\/nginx\/ngx_dynamic_upstream\r\n\r\n2015\/06\/09 20:15:25 Enter the following command for install nginx.\r\n\r\n<\/span><span class=\"gp\">   $<\/span> <span class=\"nb\">cd <\/span>work\/1.9.1\/nginx-1.9.1\r\n<span class=\"gp\">   $<\/span> <span class=\"nb\">sudo <\/span>make <span class=\"nb\">install<\/span>\r\n<span class=\"gp\">$<\/span>\r\n<\/code><\/pre>\n<p>\u8bf7\u67e5\u770b\u5176\u4ed6\u9650\u5236\u4e8b\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx-build\u548cnginx\u7684configure\u9009\u9879 \u5728\u8fc7\u53bb\uff0c\u5982\u679c\u60f3\u8981\u5728nginx-build\u4e2d\u8be6\u7ec6\u6307\u5b9a [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32815","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\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879 - 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\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\" \/>\n<meta property=\"og:description\" content=\"nginx-build\u548cnginx\u7684configure\u9009\u9879 \u5728\u8fc7\u53bb\uff0c\u5982\u679c\u60f3\u8981\u5728nginx-build\u4e2d\u8be6\u7ec6\u6307\u5b9a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-12T21:07:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T23:31:15+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \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%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/\",\"name\":\"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-12T21:07:01+00:00\",\"dateModified\":\"2024-01-14T23:31:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879 - 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\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879","og_description":"nginx-build\u548cnginx\u7684configure\u9009\u9879 \u5728\u8fc7\u53bb\uff0c\u5982\u679c\u60f3\u8981\u5728nginx-build\u4e2d\u8be6\u7ec6\u6307\u5b9a [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-12T21:07:01+00:00","article_modified_time":"2024-01-14T23:31:15+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/","name":"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-12T21:07:01+00:00","dateModified":"2024-01-14T23:31:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u6784\u5efanginx\u65f6\u76f4\u63a5\u6307\u5b9anginx\u7684configure\u9009\u9879"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9e%84%e5%bb%banginx%e6%97%b6%e7%9b%b4%e6%8e%a5%e6%8c%87%e5%ae%9anginx%e7%9a%84configure%e9%80%89%e9%a1%b9%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32815","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32815"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32815\/revisions"}],"predecessor-version":[{"id":57387,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32815\/revisions\/57387"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}