{"id":33088,"date":"2022-08-07T07:20:40","date_gmt":"2023-11-18T15:37:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/"},"modified":"2024-01-15T07:37:52","modified_gmt":"2024-01-14T23:37:52","slug":"%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/","title":{"rendered":"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b"},"content":{"rendered":"<p>\u6211\u5728amazon-linux-extras\u4e0a\u5b89\u88c5\u7684nginx\u60f3\u8981\u6dfb\u52a0\u4e00\u4e2a\u6a21\u5757\uff0c\u7ed3\u679c\u6d6a\u8d39\u4e86\u76f8\u5f53\u591a\u7684\u65f6\u95f4\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<p>\u6211\u60f3\u8981\u5b89\u88c5\u7684\u6a21\u5757\u662f headers-more-nginx-module\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2a\u7f51\u5740\u627e\u5230\u5b83\uff1ahttps:\/\/github.com\/openresty\/headers-more-nginx-module\/<\/p>\n<h3>\u9996\u5148\u4e0d\u8981\u8003\u8651\u4efb\u4f55\u4e8b\u60c5\uff0c\u53ea\u9700\u5c1d\u8bd5\u5728conf\u6587\u4ef6\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u3002<\/h3>\n<p>\u6211\u8bd5\u56fe\u4f7f\u7528\u8fd9\u4e2a\u6765\u5220\u9664HTTP\u6807\u9898\uff0c\u4f46\u662f&#8230;&#8230;<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">more_clear_headers<\/span> <span class=\"s\">\"Server\"<\/span><span class=\"p\">;<\/span>\r\n<\/code><\/pre>\n<p>\u8fd9\u662f\u4e00\u4e2a\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code># nginx -t\r\nnginx: [emerg] unknown directive \"more_clear_headers\" in \/etc\/nginx\/nginx.conf:24\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed\r\n#\r\n<\/code><\/pre>\n<p>\u6211\u5c1d\u8bd5\u627e\u4e86\u4e00\u4e0b\u6a21\u5757\uff0c\u4f46\u662f\u6ca1\u6709\u627e\u5230\u8fd9\u6837\u7684\u4e1c\u897f\u3002\u3002<\/p>\n<pre class=\"post-pre\"><code># ls -l \/usr\/lib64\/nginx\/modules\r\n\u5408\u8a08 0\r\n#\r\n<\/code><\/pre>\n<p>\u636e\u6211\u6240\u77e5\uff0c\u901a\u8fc7amazon-linux-extras\u5b89\u88c5\u7684nginx\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6ca1\u6709\u96c6\u6210headers-more-nginx-module\u6a21\u5757\u3002<\/p>\n<h3>\u6211\u5011\u5c07\u9032\u884c\u6a21\u7d44\u7684\u5efa\u7f6e\u3002<\/h3>\n<p>\u5728Google\u4e0a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u6211\u53d1\u73b0\u6709\u4e24\u4e2a\u9009\u62e9\uff1a\u8981\u4e48\u81ea\u5df1\u91cd\u65b0\u6784\u5efa\u548c\u5b89\u88c5nginx\uff0c\u8981\u4e48\u6784\u5efa\u6a21\u5757\u3002\u8003\u8651\u5230\u91cd\u65b0\u6784\u5efanginx\u6709\u70b9\u9ebb\u70e6\uff0c\u6211\u51b3\u5b9a\u5c1d\u8bd5\u6784\u5efa\u6a21\u5757\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u94fe\u63a5\uff1a<br \/>\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"nginx: \u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u304b\u3089\u7279\u5b9a\u306e\u30d8\u30c3\u30c0\u3092\u6d88\u3059 - \u96d1\u591a\u306a\u30d6\u30ed\u30b0\" src=\"https:\/\/hatenablog-parts.com\/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2020%2F09%2F27%2F121224#?secret=HeqAqgRt6G\" data-secret=\"HeqAqgRt6G\" scrolling=\"no\" frameborder=\"0\"><\/iframe><br \/>\nhttps:\/\/blog.kozakana.net\/2020\/02\/nginx-build-on-amazon-linux2\/<\/p>\n<p>\u9996\u5148\u9700\u8981\u5b89\u88c5\u5efa\u8bbe\u6240\u9700\u5de5\u5177\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install -y gcc gcc-c++ libxslt-devel gd-devel GeoIP-devel perl-ExtUtils-Embed gperftools-devel\r\n<\/code><\/pre>\n<p>\u4e0b\u8f7d\u5e76\u89e3\u538b\u8981\u6784\u5efa\u7684\u6e90\u4ee3\u7801\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code># wget http:\/\/nginx.org\/download\/nginx-1.20.0.tar.gz\r\n# wget https:\/\/github.com\/openresty\/headers-more-nginx-module\/archive\/refs\/tags\/v0.33.tar.gz\r\n# wget https:\/\/sourceforge.net\/projects\/pcre\/files\/pcre\/8.45\/pcre-8.45.tar.gz\r\n# wget https:\/\/www.openssl.org\/source\/openssl-3.0.1.tar.gz\r\n# tar zxvf nginx-1.20.0.tar.gz\r\n# tar zxvf v0.33.tar.gz\r\n# tar zxvf pcre-8.45.tar.gz\r\n# tar zxvf openssl-3.0.1.tar.gz\r\n# cp -r pcre-8.45 \/usr\/local\/src\/\r\n# cp -r openssl-3.0.1 \/usr\/local\/src\/\r\n<\/code><\/pre>\n<p>\u8fd9\u662f\u6784\u5efanginx\u65f6\u4f7f\u7528\u7684\u53c2\u6570\u5417\uff1f<\/p>\n<pre class=\"post-pre\"><code># nginx -V\r\nnginx version: nginx\/1.20.0\r\nbuilt by gcc 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC)\r\nbuilt with OpenSSL 1.1.1g FIPS  21 Apr 2020\r\nTLS SNI support enabled\r\nconfigure arguments: --prefix=\/usr\/share\/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 --http-client-body-temp-path=\/var\/lib\/nginx\/tmp\/client_body --http-proxy-temp-path=\/var\/lib\/nginx\/tmp\/proxy --http-fastcgi-temp-path=\/var\/lib\/nginx\/tmp\/fastcgi --http-uwsgi-temp-path=\/var\/lib\/nginx\/tmp\/uwsgi --http-scgi-temp-path=\/var\/lib\/nginx\/tmp\/scgi --pid-path=\/run\/nginx.pid --lock-path=\/run\/lock\/subsys\/nginx --user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-google_perftools_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --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-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=\/usr\/lib\/rpm\/redhat\/redhat-hardened-cc1 -m64 -mtune=generic' --with-ld-opt='-Wl,-z,relro -specs=\/usr\/lib\/rpm\/redhat\/redhat-hardened-ld -Wl,-E'\r\n#\r\n<\/code><\/pre>\n<p>\u5f53\u6211\u5199\u5230\u8fd9\u91cc\u65f6\uff0c\u6211\u6ce8\u610f\u5230\u8fd9\u6b21\u7684nginx\u4f7f\u7528\u7684\u662fOpenSSL\u7248\u672c1.1.1\u3002<br \/>\n\u5df2\u7ecf\u5347\u7ea7\u5230\u4e863.0.1&#8230;\u91cd\u65b0\u6765\u4e5f\u633a\u9ebb\u70e6\u7684\uff0c\u800c\u4e14\u8fd9\u6b21\u6211\u53ea\u662f\u60f3\u88c5\u4e00\u4e2aheaders-more-nginx-module\uff0c\u53ea\u8981\u80fd\u8fd0\u884c\u5c31\u884c\u4e86\uff0c\u90a3\u5c31\u7b97\u4e86\u5427\u3002<\/p>\n<p>\u5728\u4fdd\u6301nginx -V\u663e\u793a\u7684\u53c2\u6570\u4e0d\u53d8\u7684\u60c5\u51b5\u4e0b\uff0c\u6dfb\u52a0 &#8211;add-dynamic-module=\/path\/to\/headers-more-nginx-module-0.33 \u6765\u8fd0\u884cconfigure\u65f6\u9047\u5230\u4e00\u4e9b\u9519\u8bef\uff0c\u6700\u7ec8\u4ee5\u4e0b\u547d\u4ee4\u6210\u529f\u6267\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code>.\/configure --with-compat --add-dynamic-module=\/path\/to\/headers-more-nginx-module-0.33 --prefix=\/usr\/share\/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 --http-client-body-temp-path=\/var\/lib\/nginx\/tmp\/client_body --http-proxy-temp-path=\/var\/lib\/nginx\/tmp\/proxy --http-fastcgi-temp-path=\/var\/lib\/nginx\/tmp\/fastcgi --http-uwsgi-temp-path=\/var\/lib\/nginx\/tmp\/uwsgi --http-scgi-temp-path=\/var\/lib\/nginx\/tmp\/scgi --pid-path=\/run\/nginx.pid --lock-path=\/run\/lock\/subsys\/nginx --user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-google_perftools_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --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-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-cc-opt=-Wno-error  --with-pcre=\/usr\/local\/src\/pcre-8.45 --with-openssl=\/usr\/local\/src\/openssl-3.0.1\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u6240\u4ee5\u770b\u8d77\u6765\u6a21\u5757\u5df2\u7ecf\u6784\u5efa\u597d\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code># make modules\r\n<\/code><\/pre>\n<p>\u867d\u7136\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u4f46\u8fd9\u8fb9\u4e5f\u80fd\u65e0\u9519\u8bef\u5730\u5b8c\u6210\u3002<br \/>\n\u5c06\u751f\u6210\u7684.so\u6587\u4ef6\u653e\u7f6e\u5728\u5408\u9002\u7684\u4f4d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code># cp -p .\/objs\/ngx_http_headers_more_filter_module.so \/usr\/lib64\/nginx\/modules\/\r\n<\/code><\/pre>\n<h3>\u5c1d\u8bd5\u91cd\u65b0\u5c06\u5176\u8bbe\u7f6e\u4e3aconf\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"k\">load_module<\/span> <span class=\"n\">\/usr\/lib64\/nginx\/modules\/ngx_http_headers_more_filter_module.so<\/span><span class=\"p\">;<\/span>\r\n<span class=\"k\">\ufe19<\/span>\r\n<span class=\"s\">\ufe19<\/span>\r\n<span class=\"s\">more_clear_headers<\/span> <span class=\"s\">\"Server\"<\/span><span class=\"p\">;<\/span>\r\n<\/code><\/pre>\n<p>\u68c0\u67e5<\/p>\n<pre class=\"post-pre\"><code># nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\r\n#\r\n<\/code><\/pre>\n<p>\u6ca1\u6709\u95ee\u9898\uff01\uff01<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8fdb\u884c\u4e86\u64cd\u4f5c\u786e\u8ba4\u540e\uff0c\u6211\u786e\u8ba4\u5230\u54cd\u5e94\u5934\u4e2d\u6ca1\u6709\u5305\u542b&#8221;Server&#8221;\u5934\u5b57\u6bb5\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5728amazon-linux-extras\u4e0a\u5b89\u88c5\u7684nginx\u60f3\u8981\u6dfb\u52a0\u4e00\u4e2a\u6a21\u5757\uff0c\u7ed3\u679c\u6d6a\u8d39\u4e86\u76f8\u5f53\u591a\u7684\u65f6\u95f4\uff0c\u6240\u4ee5\u6211\u51b3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33088","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>\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b - 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\/\u4f7f\u7528amazonlinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u6211\u5728amazon-linux-extras\u4e0a\u5b89\u88c5\u7684nginx\u60f3\u8981\u6dfb\u52a0\u4e00\u4e2a\u6a21\u5757\uff0c\u7ed3\u679c\u6d6a\u8d39\u4e86\u76f8\u5f53\u591a\u7684\u65f6\u95f4\uff0c\u6240\u4ee5\u6211\u51b3 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528amazonlinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-18T15:37:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T23:37:52+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/\",\"name\":\"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-18T15:37:00+00:00\",\"dateModified\":\"2024-01-14T23:37:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b\"}]},{\"@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\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b - 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\/\u4f7f\u7528amazonlinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b","og_description":"\u6211\u5728amazon-linux-extras\u4e0a\u5b89\u88c5\u7684nginx\u60f3\u8981\u6dfb\u52a0\u4e00\u4e2a\u6a21\u5757\uff0c\u7ed3\u679c\u6d6a\u8d39\u4e86\u76f8\u5f53\u591a\u7684\u65f6\u95f4\uff0c\u6240\u4ee5\u6211\u51b3 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528amazonlinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-18T15:37:00+00:00","article_modified_time":"2024-01-14T23:37:52+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/","name":"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-18T15:37:00+00:00","dateModified":"2024-01-14T23:37:52+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528AmazonLinux\u7684extras\u5b58\u50a8\u5e93\u5b89\u88c5\u4e86Nginx\uff0c\u5e76\u8bb0\u5f55\u4e86\u5c1d\u8bd5\u6dfb\u52a0\u52a8\u6001\u6a21\u5757\u7684\u8fc7\u7a0b"}]},{"@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\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8amazonlinux%e7%9a%84extras%e5%ad%98%e5%82%a8%e5%ba%93%e5%ae%89%e8%a3%85%e4%ba%86nginx%ef%bc%8c%e5%b9%b6%e8%ae%b0%e5%bd%95%e4%ba%86%e5%b0%9d%e8%af%95%e6%b7%bb%e5%8a%a0%e5%8a%a8\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33088","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33088"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33088\/revisions"}],"predecessor-version":[{"id":57432,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33088\/revisions\/57432"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}