{"id":33324,"date":"2023-06-28T20:05:50","date_gmt":"2023-06-03T21:25:24","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/"},"modified":"2024-04-30T11:08:58","modified_gmt":"2024-04-30T03:08:58","slug":"%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/","title":{"rendered":"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa"},"content":{"rendered":"<p>Phusion Passenger\u63d0\u4f9b\u4e86\u4e00\u4e2a\u80fd\u591f\u6784\u5efa\u5e26\u6709nginx\u7684passenger-install-nginx-module\uff0c\u4f46\u662f\u81ea\u52a8\u6784\u5efa\u7684nginx\u53ef\u80fd\u6ca1\u6709\u96c6\u6210\u6240\u9700\u7684\u6a21\u5757\u3002<br \/>\n\uff08\u4f8b\u5982\uff0c\u53ef\u80fd\u6ca1\u6709HTTP\/2\uff08ALPN\uff09\u652f\u6301\u7b49\uff09<\/p>\n<p>\u4e58\u5ba2\u5b89\u88c5Nginx\u6a21\u5757\u65f6\uff0c\u5373\u4f7f\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u8f7b\u677e\u5904\u7406\u3002<\/p>\n<h2>\u5728\u4e2d\u56fd\u5408\u683c\u7684\u5927\u5b66\u751f\u6e90\u4e8e\u826f\u597d\u7684\u524d\u63d0\u6761\u4ef6\u3002<\/h2>\n<p>\u6211\u6b63\u5728\u4ee5\u4ee5\u4e0b\u6761\u4ef6\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Phusion Passenger\u3092Gem\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">passenger 5.2.2<\/ul>\n<h2>\u51c6\u5907nginx\u7684\u6e90\u4ee3\u7801\u3002<\/h2>\n<p>\u83b7\u53d6\u5e76\u89e3\u538b\u6240\u9700\u7248\u672c\u7684nginx\u6e90\u4ee3\u7801\u3002<\/p>\n<ul class=\"post-ul\">https:\/\/nginx.org\/en\/download.html<\/ul>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\r\n# curl -L -O https:\/\/nginx.org\/download\/nginx-1.12.2.tar.gz\r\n# tar xofz nginx-1.12.2.tar.gz\r\n<\/code><\/pre>\n<h3>\u51c6\u5907\u5176\u4ed6\u6a21\u5757\u7684\u6e90\u4ee3\u7801\u3002<\/h3>\n<p>\u5982\u679c\u5728\u540e\u7eed\u7684\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u9700\u8981\u6307\u5b9a\u67d0\u4e9b\u5185\u5bb9\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u51c6\u5907\u597d\u3002\u4f8b\u5982\uff0c\u4e3a\u4e86\u652f\u6301ALPN\uff0c\u9700\u8981\u4f7f\u7528OpenSSL\u7684\u7248\u672c1.0.2\u6216\u66f4\u9ad8\uff0c\u56e0\u6b64\u9700\u8981\u83b7\u53d6\u548c\u89e3\u538b\u6e90\u4ee3\u7801\u3002<\/p>\n<ul class=\"post-ul\">https:\/\/www.openssl.org\/source\/<\/ul>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\r\n# curl -L -O https:\/\/www.openssl.org\/source\/openssl-1.1.0h.tar.gz\r\n# tar xofz openssl-1.1.0h.tar.gz\r\n<\/code><\/pre>\n<h2>\u6267\u884cpassenger-install-nginx-module<\/h2>\n<p>\u5982\u679c\u4f60\u4e0d\u60f3\u53c2\u4e0e\u5bf9\u8bdd\u7c7b\u578b\u6d3b\u52a8\uff0c\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u9009\u9879\u3002<\/p>\n<h3>\u8f6c\u5411\u7b2c\u4e8c\u6761\u8def<\/h3>\n<p>\u6267\u884c passenger-install-nginx-module \u547d\u4ee4\uff0c\u5e76\u6309\u7167\u6b63\u5e38\u6b65\u9aa4\u8fdb\u884c\uff0c\u76f4\u5230\u51fa\u73b0\u201c\u662f\u5426\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5 Nginx\uff1f\u201d\u7684\u63d0\u793a\u4e3a\u6b62\u3002<\/p>\n<pre class=\"post-pre\"><code># passenger-install-nginx-module\r\n<\/code><\/pre>\n<p>\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879<\/p>\n<pre class=\"post-pre\"><code>Automatically download and install Nginx?\r\n\r\nNginx doesn't support loadable modules such as some other web servers do,\r\nso in order to install Nginx with Passenger support, it must be recompiled.\r\n\r\nDo you want this installer to download, compile and install Nginx for you?\r\n\r\n 1. Yes: download, compile and install Nginx for me. (recommended)\r\n    The easiest way to get started. A stock Nginx 1.12.2 with Passenger\r\n    support, but with no other additional third party modules, will be\r\n    installed for you to a directory of your choice.\r\n\r\n 2. No: I want to customize my Nginx installation. (for advanced users)\r\n    Choose this if you want to compile Nginx with more third party modules\r\n    besides Passenger, or if you need to pass additional options to Nginx's\r\n    'configure' script. This installer will  1) ask you for the location of\r\n    the Nginx source code,  2) run the 'configure' script according to your\r\n    instructions, and  3) run 'make install'.\r\n\r\nWhichever you choose, if you already have an existing Nginx configuration file,\r\nthen it will be preserved.\r\n\r\nEnter your choice (1 or 2) or press Ctrl-C to abort: \r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u91cc\u8f93\u5165\u6570\u5b572\u7136\u540e\u7ee7\u7eed\u3002<\/p>\n<pre class=\"post-pre\"><code>Enter your choice (1 or 2) or press Ctrl-C to abort: 2\r\n<\/code><\/pre>\n<h3>\u6307\u5b9a\u6e90\u4ee3\u7801<\/h3>\n<p>\u7136\u540e\uff0c\u60a8\u4f1a\u88ab\u95ee\u5230nginx\u6e90\u4ee3\u7801\u7684\u4f4d\u7f6e\u5728\u54ea\u91cc\u3002<\/p>\n<pre class=\"post-pre\"><code>Where is your Nginx source code located?\r\n\r\nPlease specify the directory: \r\n<\/code><\/pre>\n<p>\u8bf7\u8f93\u5165\u60a8\u4e4b\u524d\u8bbe\u7f6e\u597d\u7684\u5730\u70b9\u5e76\u524d\u8fdb\u3002<\/p>\n<pre class=\"post-pre\"><code>Please specify the directory: \/usr\/local\/src\/nginx-1.12.2\r\n<\/code><\/pre>\n<h3>\u6307\u5b9a\u5b89\u88c5\u76ee\u5f55<\/h3>\n<p>\u63a5\u4e0b\u6765\uff0c\u4f1a\u95ee\u4f60nginx\u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code>Where do you want to install Nginx to?\r\n\r\nPlease specify a prefix directory [\/opt\/nginx]: \r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u6ca1\u6709\u95ee\u9898\u7684\u8bdd\uff0c\u5c31\u76f4\u63a5\u6309Enter\u952e\uff0c\u5728\/opt\/nginx\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002\u5982\u679c\u9700\u8981\u7684\u8bdd\uff0c\u5c31\u8f93\u5165\u4f4d\u7f6e\u5e76\u7ee7\u7eed\u3002<\/p>\n<h3>\u6dfb\u52a0\u914d\u7f6e\u9009\u9879<\/h3>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u4f1a\u8be2\u95ee\u4f60\u60f3\u5728\u914d\u7f6e\u65f6\u6dfb\u52a0\u7684\u9009\u9879\uff0c\u6b63\u5982\u4f60\u6240\u671f\u5f85\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>Extra Nginx configure options\r\n\r\nIf you want to pass extra arguments to the Nginx 'configure' script, then\r\nplease specify them. If not, then specify nothing and press Enter.\r\n\r\nIf you specify nothing then the 'configure' script will be run as follows:\r\n\r\n  sh .\/configure --prefix='\/opt\/nginx' --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_addition_module --with-cc-opt=-Wno-error --with-ld-opt='' --add-module='\/path\/to\/passenger-5.2.2\/src\/nginx_module'\r\n\r\nExtra arguments to pass to configure script: \r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u91cc\u53ef\u4ee5\u6839\u636e\u559c\u597d\u9009\u62e9\u9009\u9879\u3002<br \/>\n\u8fd9\u6b21\u4e3a\u4e86\u652f\u6301HTTP\/2(ALPN)\uff0c\u6211\u4eec\u4f7f\u7528\u4e86&#8211;with-openssl=\u6765\u6307\u5b9a\u4e86OpenSSL\u7684\u6e90\u4ee3\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>Extra arguments to pass to configure script: --with-openssl='\/usr\/local\/src\/openssl-1.1.0h'\r\n<\/code><\/pre>\n<p>\u5f53\u70b9\u51fb\u201c\u8fdb\u5165\u201d\u540e\uff0c\u4f1a\u663e\u793a\u5305\u62ec\u60a8\u8f93\u5165\u7684\u9009\u9879\u5728\u5185\u7684\u786e\u8ba4\u4fe1\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>Confirm configure flags\r\n\r\nThe Nginx configure script will be run as follows:\r\n\r\n  sh .\/configure --prefix='\/opt\/nginx' --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_addition_module --with-cc-opt=-Wno-error --with-ld-opt='' --add-module='\/path\/to\/passenger\/src\/nginx_module' --with-openssl='\/usr\/local\/src\/openssl-1.1.0h'\r\n\r\nIs this what you want? (yes\/no) [default=yes]: \r\n<\/code><\/pre>\n<p>\u5982\u679c\u5728\u8fd9\u91cc\u8f93\u5165 &#8220;no&#8221;\uff0c\u60a8\u5c06\u8fd4\u56de\u5230 &#8220;Extra Nginx configure options&#8221;\uff0c\u53ef\u4ee5\u91cd\u65b0\u8fdb\u884c\u8bbe\u7f6e\u3002<br \/>\n\u5982\u679c\u6ca1\u6709\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9 &#8220;yes&#8221; \u6216\u76f4\u63a5\u6309\u4e0b &#8220;Enter&#8221; \u7ee7\u7eed\u3002<\/p>\n<h3>\u5efa\u7b51<\/h3>\n<p>\u540e\u9762\u7b49\u5f85\u5efa\u8bbe\u5b8c\u6210\u5e76\u663e\u793a\u4ee5\u4e0b\u4fe1\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>Nginx with Passenger support was successfully installed.\r\n\r\nThe Nginx configuration file (\/opt\/nginx\/conf\/nginx.conf)\r\nmust contain the correct configuration options in order for Phusion Passenger\r\nto function correctly.\r\n\r\nThis installer has already modified the configuration file for you! The\r\nfollowing configuration snippet was inserted:\r\n\r\n  http {\r\n      ...\r\n      passenger_root \/path\/to\/passenger;\r\n      passenger_ruby \/path\/to\/ruby;\r\n      ...\r\n  }\r\n\r\nAfter you start Nginx, you are ready to deploy any number of Ruby on Rails\r\napplications on Nginx.\r\n\r\nPress ENTER to continue.\r\n<\/code><\/pre>\n<p>\u8f93\u5165Enter\u5373\u5b8c\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code>Deploying a web application\r\n\r\nTo learn how to deploy a web app on Passenger, please follow the deployment\r\nguide:\r\n\r\n  https:\/\/www.phusionpassenger.com\/library\/deploy\/nginx\/deploy\/\r\n\r\nEnjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)\r\nhttps:\/\/www.phusionpassenger.com\r\n\r\nPassenger\u00ae is a registered trademark of Phusion Holding B.V.\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4<\/h2>\n<p>\u6211\u4f1a\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u6309\u9884\u671f\u6784\u5efa\u4e86nginx\u3002\u6211\u5c06\u8fd0\u884c\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684sbin\/nginx -V\u6765\u6267\u884c\u6b64\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code># \/opt\/nginx\/sbin\/nginx -V\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>nginx version: nginx\/1.12.2\r\nbuilt by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)\r\nbuilt with OpenSSL 1.1.0h  27 Mar 2018\r\nTLS SNI support enabled\r\nconfigure arguments: --prefix=\/opt\/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_addition_module --with-cc-opt=-Wno-error --with-ld-opt= --add-module=\/path\/to\/passenger\/src\/nginx_module --with-openssl=\/usr\/local\/src\/openssl-1.1.0h\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u8ba4\u4f7f\u7528\u7684 OpenSSL \u7248\u672c\u662f\u6307\u5b9a\u7684\u6e90\u4ee3\u7801\u7248\u672c\uff0c\u5e76\u4e14\u8fd8\u5305\u542b\u4e86\u5728 configure \u53c2\u6570\u4e2d\u6307\u5b9a\u7684\u9009\u9879\u3002<\/p>\n<p>\u8f9b\u82e6\u4e86\u3002<\/p>\n<h2>\u975e\u5bf9\u8bdd\u5f0f\u5efa\u7b51<\/h2>\n<p>\u53ef\u4ee5\u901a\u8fc7\u5728 passenger-install-nginx-module \u547d\u4ee4\u540e\u4f20\u9012\u53c2\u6570\u6765\u5b9e\u73b0\u975e\u4ea4\u4e92\u5f0f\u7684\u65b9\u5f0f\u8fdb\u884c\u4e0a\u8ff0\u7684\u6784\u5efa\u5de5\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code># passenger-install-nginx-module --help\r\nUsage: passenger-install-nginx-module [options]\r\n\r\nOptions:\r\n        --auto                       Automatically confirm 'Press ENTER to\r\n                                     continue' prompts.\r\n        --prefix=DIR                 Use the given Nginx install prefix instead\r\n                                     of asking for it interactively.\r\n        --auto-download              Download and install Nginx automatically,\r\n                                     instead of asking interactively whether to\r\n                                     download+install or to use an existing\r\n                                     Nginx source directory.\r\n        --nginx-source-dir=DIR       Compile and install Nginx using the given\r\n                                     Nginx source directory, instead of\r\n                                     interactively asking to download+install\r\n                                     or to use an existing Nginx source\r\n                                     directory. Conflicts with --auto-download.\r\n        --extra-configure-flags=STRING\r\n                                     Pass these extra flags to Nginx's\r\n                                     'configure' script, instead of asking for\r\n                                     it interactively. Specify 'none' if you\r\n                                     do not want to pass additional flags but do\r\n                                     not want this installer to ask\r\n                                     interactively either.\r\n        --languages NAMES            Comma-separated list of interested\r\n                                     languages (e.g.\r\n                                     'ruby,python,nodejs,meteor')\r\n        --force-colors               Display colors even if stdout is not a TTY\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6309\u7167\u672c\u7bc7\u6587\u7ae0\u7684\u4f8b\u5b50\u8fdb\u884c\u8bbe\u5b9a\uff0c\u5c06\u4f1a\u5f97\u5230\u4e0e\u5bf9\u8bdd\u5f0f\u76f8\u4f3c\u7684\u7ed3\u679c\u3002<\/p>\n<pre class=\"post-pre\"><code>passenger-install-nginx-module --auto --prefix=\/opt\/nginx --nginx-source-dir='\/usr\/local\/src\/nginx-1.12.2' --extra-configure-flags=\"--with-openssl='\/usr\/local\/src\/openssl-1.1.0h'\"\r\n<\/code><\/pre>\n<div>\u4e3a\u8c37\u6b4cChrome\u7528\u6237\u652f\u6301HTTP\/2 | NGINX<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Phusion Passenger\u63d0\u4f9b\u4e86\u4e00\u4e2a\u80fd\u591f\u6784\u5efa\u5e26\u6709nginx\u7684passenger-install-ngi [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33324","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>\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa - 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\/\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\" \/>\n<meta property=\"og:description\" content=\"Phusion Passenger\u63d0\u4f9b\u4e86\u4e00\u4e2a\u80fd\u591f\u6784\u5efa\u5e26\u6709nginx\u7684passenger-install-ngi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-03T21:25:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T03:08:58+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\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, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \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\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/\",\"name\":\"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-03T21:25:24+00:00\",\"dateModified\":\"2024-04-30T03:08:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa - 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\/\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa","og_description":"Phusion Passenger\u63d0\u4f9b\u4e86\u4e00\u4e2a\u80fd\u591f\u6784\u5efa\u5e26\u6709nginx\u7684passenger-install-ngi [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-03T21:25:24+00:00","article_modified_time":"2024-04-30T03:08:58+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/","name":"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-03T21:25:24+00:00","dateModified":"2024-04-30T03:08:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4e58\u5ba2\u4f7f\u7528nginx\u6307\u5b9a\u9009\u9879\u6765\u6784\u5efa"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b9%98%e5%ae%a2%e4%bd%bf%e7%94%a8nginx%e6%8c%87%e5%ae%9a%e9%80%89%e9%a1%b9%e6%9d%a5%e6%9e%84%e5%bb%ba%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\/33324","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33324"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33324\/revisions"}],"predecessor-version":[{"id":91546,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33324\/revisions\/91546"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}