{"id":26204,"date":"2025-04-19T14:51:30","date_gmt":"2025-04-19T06:51:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/26204.html"},"modified":"2025-04-19T14:51:30","modified_gmt":"2025-04-19T06:51:30","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8nginx%e9%87%8c%e9%85%8d%e7%bd%aessl%e8%af%81%e4%b9%a6-linux%e7%89%88%e6%9c%ac%ef%bc%88ecs%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8f%af%e7%94%a8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/26204.html","title":{"rendered":"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66----Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E9%85%8D%E7%BD%AE%E5%89%8D%E6%8F%90%EF%BC%9A-toc\" style=\"margin-left:0px\">\u914d\u7f6e\u524d\u63d0<\/p>\n<p id=\"NGINX%E5%9C%A8Linux%E4%B8%AD%E7%9A%84%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:0px\">NGINX\u5728Linux\u4e2d\u7684\u5b89\u88c5<\/p>\n<p id=\"%E9%85%8D%E7%BD%AENGINX%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86-toc\" style=\"margin-left:0px\">\u914d\u7f6eNGINX\u53cd\u5411\u4ee3\u7406<\/p>\n<p id=\"%E9%85%8D%E7%BD%AE%E4%B8%AD%E7%9A%84%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF-toc\" style=\"margin-left:0px\">\u914d\u7f6e\u4e2d\u7684\u5e38\u89c1\u9519\u8bef<\/p>\n<hr \/>\n<h2 id=\"%E9%85%8D%E7%BD%AE%E5%89%8D%E6%8F%90%EF%BC%9A\" style=\"margin-left:0px;margin-right:0px\">\u914d\u7f6e\u524d\u63d0<\/h2>\n<li>\u6709\u4e00\u53f0\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u7684ECS\u670d\u52a1\u5668<\/li>\n<li>\u5df2\u7ecf\u83b7\u53d6\u4e86SSL\u8bc1\u4e66&#xff08;NGINX\u7248\u672c&#xff0c;\u514d\u8d39\u7684\u4ed8\u8d39\u7684\u90fd\u53ef\u4ee5&#xff09;<\/li>\n<li>\u5df2\u7ecf\u5728ECS\u4e2d\u90e8\u7f72\u4e86\u9879\u76ee&#xff08;\u8fd9\u4e00\u70b9\u4e0d\u662f\u5fc5\u987b\u7684&#xff0c;\u4f46\u662f\u53ef\u4ee5\u5feb\u901f\u6d4b\u8bd5SSL\u662f\u5426\u914d\u7f6e\u6210\u529f&#xff09;<\/li>\n<h2 id=\"\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><\/h2>\n<h2 id=\"NGINX%E5%9C%A8Linux%E4%B8%AD%E7%9A%84%E5%AE%89%E8%A3%85\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\">NGINX\u5728Linux\u4e2d\u7684\u5b89\u88c5<\/h2>\n<p style=\"margin-left:0;margin-right:0\">\u9996\u5148\u5728\u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u7684Nginx-linux\u7248\u672c<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5b98\u7f51\u94fe\u63a5&#x1f517;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\">nginx: download<\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"442\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065127-680347ef74c2e.jpg\" width=\"831\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">1\u3001\u5728ECS\u7684CentOS7\u7cfb\u7edf\u4e2d\u7684\u4efb\u610f\u4e00\u5904\u5efa\u7acb\u6587\u4ef6\u5939&#xff1b;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd9\u91cc\u5c31\u4ee5\/usr\/nginx\/\u4e3a\u4f8b<\/p>\n<p>mkdir \/usr\/nginx <\/p>\n<p style=\"margin-left:0;margin-right:0\">2\u3001\u5c06nginx-1.26.3.tar.gz\u6587\u4ef6\u653e\u5165\u6b64\u6587\u4ef6\u5939&#xff0c;\u7136\u540e\u89e3\u538b<\/p>\n<p>cd \/usr\/nginx<br \/>\ntar -zxf nginx-1.26.3.tar.gz <\/p>\n<p style=\"margin-left:0;margin-right:0\">3\u3001\u89e3\u538b\u4e4b\u540e\u4f1a\u6709\u4e00\u4e2anginx-1.26.3\/\u76ee\u5f55&#xff0c;\u5f00\u59cb\u914d\u7f6enginx<\/p>\n<p>cd nginx-1.26.3<\/p>\n<p>.\/configure &#8211;prefix&#061;\/usr\/local\/nginx &#8211;with-http_ssl_module<\/p>\n<p>make &amp;&amp; make install <\/p>\n<p style=\"margin-left:0;margin-right:0\">4\u3001\u6700\u540e\u5728\/usr\/local\/\u4e0b\u4f1a\u751f\u6210\u4e00\u4e2anginx\/\u76ee\u5f55&#xff0c;\u8fd0\u884cnginx<\/p>\n<p>cd \/usr\/local\/nginx\/sbin\/<\/p>\n<p>.\/nginx <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6267\u884c\u4e4b\u540e&#xff0c;\u67e5\u770b\u8fdb\u7a0b&#xff1a;<\/p>\n<p>ps aux | grep nginx <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd4\u56de&#xff1a;\u00a0<\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\">\u4e00\u4e2aroot\u8fd0\u884c\u7684master\u4e3b\u7ebf\u7a0b&#xff0c;\u7531 root \u7528\u6237\u542f\u52a8\u7684&#xff0c;\u8d1f\u8d23\u7ba1\u7406\u548c\u63a7\u5236 worker \u8fdb\u7a0b&#xff1b;<\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\">\u4e00\u4e2anobody\u7684worker\u8fdb\u7a0b&#xff0c;\u7531\u4e00\u4e2a\u975e\u7279\u6743\u7528\u6237&#xff08;\u5982 nobody&#xff09;\u8fd0\u884c&#xff0c;\u8d1f\u8d23\u5904\u7406\u5b9e\u9645\u7684 HTTP \u8bf7\u6c42\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"86\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065127-680347efb4678.jpg\" width=\"831\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8f93\u5165\u4f60\u7684ECS\u7684ip&#xff0c;\u4f1a\u51fa\u73b0nginx\u7684\u4e3b\u9875&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"498\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065127-680347efe60db.jpg\" width=\"833\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5c31\u8bf4\u660e\u6210\u529f\u4e86&#xff0c;NGINX\u914d\u7f6e\u5b8c\u6bd5&#xff01;<\/p>\n<hr \/>\n<p style=\"margin-left:0;margin-right:0\">\u968f\u540e&#xff0c;\u5728nginx\u91cc\u914d\u7f6eSSL\u8bc1\u4e66&#xff0c;\u914d\u7f6e\u53cd\u5411\u4ee3\u7406\u7684\u57df\u540d&#xff0c;\u4f7f\u5f97\u53ef\u4ee5\u5728\u8bbf\u95ee\u57df\u540d\u65f6\u4f7f\u7528HTTPS\u534f\u8bae<\/p>\n<p style=\"margin-left:0;margin-right:0\">1\u3001\u5c06\u4f60\u7684SSL\u8bc1\u4e66\u76f8\u5173\u6587\u4ef6\u653e\u5230\/etc\/pki\/tls\/certs\/\u76ee\u5f55\u4e0b&#xff0c;\u6839\u636e\/etc\/ssl\/certs\u5c31\u80fd\u627e\u5230\u3002&#xff08;\/etc\/ssl\/\u4e0b\u7684certs\u662f\u4e00\u4e2a\u94fe\u63a5&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"303\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065128-680347f035d80.jpg\" width=\"668\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">2\u3001\u5728\/usr\/local\/nginx\/conf\/\u76ee\u5f55\u4e0b\u627e\u5230nginx\u7684\u914d\u7f6e\u6587\u4ef6nginx.conf<\/p>\n<p>vim \/usr\/local\/nginx\/conf\/nginx.conf <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6b64\u5904\u5efa\u8bae\u5c06\u6b64\u6587\u4ef6\u5939\u4e0b\u8f7d\u5230\u672c\u5730\u7684Windows\u7cfb\u7edf\u4e2d\u8fdb\u884c\u7f16\u8f91&#xff0c;\u7528VSCode\u7f16\u8f91&#xff0c;\u7f16\u8f91\u5b8c\u6210\u540e\u518d\u4e0a\u4f20\u5230Linux\u4e3b\u673a\u4e2d&#xff0c;\u5e76\u8986\u76d6\u539f\u6587\u4ef6\u3002<\/p>\n<h2 style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><\/h2>\n<h2 id=\"%E9%85%8D%E7%BD%AENGINX%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\">\u914d\u7f6eNGINX\u53cd\u5411\u4ee3\u7406<\/h2>\n<p style=\"margin-left:0;margin-right:0\">\u8be6\u7ec6\u7684\u914d\u7f6e\u6d41\u7a0b\u548c\u5404\u53c2\u6570\u4f5c\u7528&#xff0c;\u8bf7\u53c2\u8003\u817e\u8baf\u4e91\u7684\u5b98\u65b9\u914d\u7f6e\u6587\u6863&#xff0c;\u91cc\u9762\u8bb2\u7684\u6bd4\u8f83\u8be6\u7ec6&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u817e\u8baf\u4e91\u5b98\u65b9\u6559\u7a0b&#xff08;NGINX\u7248SSL\u8bc1\u4e66\u7684\u914d\u7f6e&#xff09;&#x1f517;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\">SSL \u8bc1\u4e66 Nginx \u670d\u52a1\u5668 SSL \u8bc1\u4e66\u5b89\u88c5\u90e8\u7f72&#xff08;Linux&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u4eec\u6765\u770b\u4e00\u4e0bnginx.conf\u7684\u6587\u4ef6\u7ed3\u6784&#xff1a;<\/p>\n<p>#user \u00a0nobody;<\/p>\n<p>worker_processes \u00a01;<\/p>\n<p>#error_log \u00a0logs\/error.log;<\/p>\n<p>#error_log \u00a0logs\/error.log \u00a0notice;<\/p>\n<p>#error_log \u00a0logs\/error.log \u00a0info;<\/p>\n<p>#pid \u00a0 \u00a0 \u00a0 \u00a0logs\/nginx.pid;<\/p>\n<p>events {<\/p>\n<p>\u00a0 \u00a0 worker_connections \u00a01024;<\/p>\n<p>}<\/p>\n<p>http {<\/p>\n<p>\u00a0 \u00a0 include \u00a0 \u00a0 \u00a0 mime.types;<\/p>\n<p>\u00a0 \u00a0 default_type \u00a0application\/octet-stream;<\/p>\n<p>\u00a0 \u00a0 #log_format \u00a0main \u00a0&#039;$remote_addr &#8211; $remote_user [$time_local] &#034;$request&#034; &#039;<\/p>\n<p>\u00a0 \u00a0 # \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#039;$status $body_bytes_sent &#034;$http_referer&#034; &#039;<\/p>\n<p>\u00a0 \u00a0 # \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#039;&#034;$http_user_agent&#034; &#034;$http_x_forwarded_for&#034;&#039;;<\/p>\n<p>\u00a0 \u00a0 #access_log \u00a0logs\/access.log \u00a0main;<\/p>\n<p>\u00a0 \u00a0 sendfile \u00a0 \u00a0 \u00a0 \u00a0on;<\/p>\n<p>\u00a0 \u00a0 #tcp_nopush \u00a0 \u00a0 on;<\/p>\n<p>\u00a0 \u00a0 #keepalive_timeout \u00a00;<\/p>\n<p>\u00a0 \u00a0 keepalive_timeout \u00a065;<\/p>\n<p>\u00a0 \u00a0 #gzip \u00a0on;<\/p>\n<p>\u00a0 \u00a0 # server {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # listen \u00a0 \u00a0 \u00a0 80;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # server_name \u00a0localhost;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #charset koi8-r;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #access_log \u00a0logs\/host.access.log \u00a0main;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # location \/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # root \u00a0 html;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 # index \u00a0index.html index.htm;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #error_page \u00a0404 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/404.html;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # redirect server error pages to the static page \/50x.html<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # error_page \u00a0 500 502 503 504 \u00a0\/50x.html;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # location &#061; \/50x.html {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0root \u00a0 html;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # proxy the PHP scripts to Apache listening on 127.0.0.1:80<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #location ~ \\\\.php$ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0proxy_pass \u00a0 http:\/\/127.0.0.1;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #}<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #location ~ \\\\.php$ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0root \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 html;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0fastcgi_pass \u00a0 127.0.0.1:9000;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0fastcgi_index \u00a0index.php;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0fastcgi_param \u00a0SCRIPT_FILENAME \u00a0\/scripts$fastcgi_script_name;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0include \u00a0 \u00a0 \u00a0 \u00a0fastcgi_params;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #}<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # deny access to .htaccess files, if Apache&#039;s document root<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # concurs with nginx&#039;s one<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #location ~ \/\\\\.ht {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0deny \u00a0all;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 #}<\/p>\n<p>\u00a0 \u00a0 # }<\/p>\n<p>\u00a0\u00a0\u00a0 # \u4e3b\u8981\u662f\u4fee\u6539\u4ee5\u4e0b\u8fd9\u4e9b\u5730\u65b9&#xff0c;\u4e0a\u9762\u7684server\u5e94\u8be5\u5168\u90e8\u6ce8\u91ca\u6389<\/p>\n<p># another virtual host using mix of IP-, name-, and port-based configuration<\/p>\n<p># \u6b64\u5904server\u662f\u91cd\u5b9a\u5411&#xff0c;\u5f3a\u5236http\u7684\u8bbf\u95ee\u4f7f\u7528https\u534f\u8bae\u7684<\/p>\n<p># \u4e0d\u662f\u5fc5\u8981\u7684&#xff0c;\u4f46\u662f\u6bd4\u8f83\u5b9e\u7528<\/p>\n<p>\u00a0 \u00a0 server {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 listen 80;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 server_name xxxxx.com;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u81ea\u52a8\u5c06 http \u91cd\u5b9a\u5411\u5230 https<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 return 301 https:\/\/$host$request_uri;<\/p>\n<p>\u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0<br \/>\n\u00a0 \u00a0 # \u914d\u7f6eHTTPS\u534f\u8bae&#xff0c;\u5173\u952e\u662f\u914d\u7f6e\u597dSSL\u6587\u4ef6<\/p>\n<p>\u00a0 \u00a0 # HTTPS server<\/p>\n<p>\u00a0 \u00a0 server {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 listen \u00a0 \u00a0 \u00a0 443 ssl;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 server_name \u00a0xxxxx.com;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_certificate \u00a0 \u00a0 \u00a0\/etc\/ssl\/certs\/xxxxx.com_bundle.pem;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_certificate_key \u00a0\/etc\/ssl\/certs\/xxxxx.com.key;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_session_cache \u00a0 shared:SSL:10m;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_session_timeout 10m;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_protocols \u00a0 \u00a0 \u00a0 TLSv1.2 TLSv1.3;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_ciphers \u00a0 \u00a0 \u00a0 \u00a0 &#039;ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:HIGH:!aNULL:!MD5&#039;;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_prefer_server_ciphers on;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u6b64\u5904\u662f\u6211\u7684\u4e3b\u673a\u5185\u8fd0\u884c\u7684\u7aef\u53e3\u53f7\u8fdb\u884c\u7684\u6620\u5c04<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 location \/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 proxy_pass http:\/\/localhost:8080; \u00a0# Spring Boot<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 proxy_set_header Host $host;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 proxy_set_header X-Real-IP $remote_addr;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u8fd9\u91cc\u4e0d\u914d\u7f6e Flask \u53cd\u5411\u4ee3\u7406<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # location \/predict\/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # \u00a0 \u00a0 proxy_pass http:\/\/localhost:5000;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 # }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 location \/predict\/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0return 403;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 location \/static\/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0return 403;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 # \u6b64\u5904\u53ef\u4e3aECS\u7684\u516c\u7f51IP\u914d\u7f6eHTTPS\u534f\u8bae&#xff0c;\u4e0d\u8fc7\u4e0d\u63a8\u8350<\/p>\n<p>\u00a0\u00a0\u00a0 # \u5982\u679c\u662f\u57df\u540d\u7533\u8bf7\u7684SSL\u8bc1\u4e66&#xff0c;\u914d\u7f6e\u5230IP\u4f1a\u63d0\u793a\u4e0d\u53d7\u4fe1\u4efb<\/p>\n<p>\u00a0 \u00a0 # HTTPS localhost IP<\/p>\n<p>\u00a0 \u00a0 server {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 listen \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0443 ssl;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 server_name \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 49.233.83.47;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_certificate \u00a0 \u00a0 \u00a0 \u00a0 \/etc\/ssl\/certs\/xxxxx.com_bundle.pem;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 ssl_certificate_key \u00a0 \u00a0 \/etc\/ssl\/certs\/xxxxx.com.key;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 location \/ {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 proxy_pass \u00a0 \u00a0 \u00a0 \u00a0 \u00a0http:\/\/localhost:8081;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 }<\/p>\n<p>} <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6700\u540e&#xff0c;\u5728\u914d\u7f6e\u6587\u4ef6\u91cd\u65b0\u7f16\u8bd1\u4e4b\u540e&#xff0c;\u4fdd\u5b58\u5230\u539f\u672c\u7684\u4f4d\u7f6e&#xff1b;\u7136\u540e\u91cd\u542fNGINX\u670d\u52a1<\/p>\n<p>cd \/usr\/local\/nginx\/sbin<br \/>\n.\/nginx -s reload <\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#ffd900\">\u914d\u7f6e\u5b8c\u6bd5\u4e14\u91cd\u542f\u5b8c\u6bd5\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u57df\u540d&#xff0c;\u5982\u679c\u662f\u56fd\u5185\u7684<\/span><span style=\"background-color:#ffd900\">\u57df\u540d<\/span><span style=\"background-color:#ffd900\">\u914d\u7f6e\u5230<\/span><span style=\"background-color:#ffd900\">\u56fd\u5185\u7684\u670d\u52a1\u5668<\/span><span style=\"background-color:#ffd900\">&#xff0c;\u53ea\u80fd\u7533\u8bf7<\/span><span style=\"background-color:#ffd900\">ICP<\/span><span style=\"background-color:#ffd900\">\u5907\u6848<\/span><span style=\"background-color:#ffd900\">\u540e\u624d\u80fd\u8bbf\u95ee\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5982\u679c\u6ca1\u6709ICP\u5907\u6848&#xff0c;\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u53ef\u4ee5\u5feb\u901f\u4f7f\u7528\u81ea\u5df1\u7684\u57df\u540d&#xff0c;\u5c31\u662f\u53bb\u4e70\u4e00\u4e2a\u670d\u52a1\u5668\u5728\u9999\u6e2f\u7684\u5185\u7a7f\u96a7\u9053&#xff0c;\u5c06\u81ea\u5df1\u7684\u57df\u540d\u914d\u7f6e\u5230\u516c\u7f51IP\u7684\u96a7\u9053\u4e0a\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"523\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065128-680347f068008.jpg\" width=\"686\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"367\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065128-680347f09b14e.jpg\" width=\"699\" \/><\/p>\n<h2 id=\"\" style=\"margin-left:0px;margin-right:0px\"><\/h2>\n<h2 id=\"%E9%85%8D%E7%BD%AE%E4%B8%AD%E7%9A%84%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\">\u914d\u7f6e\u4e2d\u7684\u5e38\u89c1\u9519\u8bef<\/h2>\n<\/p>\n<h3 style=\"background-color:transparent;margin-left:0px;margin-right:0px\">\u9519\u8bef\u4e00&#xff1a;\u53c2\u6570\u8bf7\u6c42\u9519\u8bef<\/h3>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"46\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065128-680347f0cfc7e.jpg\" width=\"976\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">nginx \u7f16\u8bd1\u5b89\u88c5\u65f6\u6700\u5e38\u89c1\u7684\u9519\u8bef\u4e4b\u4e00&#xff0c;\u8bf4\u660e\u4f60\u73b0\u5728\u7528\u7684 nginx \u662f\u6e90\u7801\u7f16\u8bd1\u7684\u7248\u672c&#xff0c;\u4f46\u5f53\u521d\u6ca1\u6709\u5e26\u4e0a &#8211;with-http_ssl_module \u53c2\u6570\u7f16\u8bd1&#xff0c;\u6240\u4ee5\u5b83\u4e0d\u652f\u6301 SSL \/ HTTPS<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u91cd\u65b0\u8fdb\u5165nginx\u7684\u6839\u76ee\u5f55\u518d\u6b64\u5b89\u88c5<\/p>\n<p>cd \/usr\/nginx\/nginx-1.26.3<\/p>\n<p>.\/configure &#8211;prefix&#061;\/usr\/local\/nginx &#8211;with-http_ssl_module<\/p>\n<p>make &amp;&amp; make install <\/p>\n<h3 style=\"margin-left:0px;margin-right:0px\"><\/h3>\n<h3 style=\"background-color:transparent;margin-left:0px;margin-right:0px\">\u9519\u8bef\u4e8c&#xff1a;NGINX\u547d\u4ee4\u65e0\u6cd5\u627e\u5230<\/h3>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"48\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065129-680347f10b6d2.jpg\" width=\"384\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6ca1\u6709\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u8fd9\u4e2a\u547d\u4ee4\u53ea\u80fd\u4f7f\u7528\u8def\u5f84\u6765\u4f7f\u7528<\/p>\n<p>\/usr\/local\/nginx -v <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u4ee5\u53bb\u914d\u7f6e\u5168\u5c40\u7684\u73af\u5883\u53d8\u91cf<\/p>\n<p>vim \/etc\/profile <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5728\u6700\u540e\u4e00\u884c\u6dfb\u52a0&#xff1a;<\/p>\n<p>export PATH&#061;$PATH:\/usr\/local\/nginx\/sbin <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7136\u540e:wq!\u4fdd\u5b58&#xff0c;\u5e76\u66f4\u65b0etc\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>source \/etc\/profile <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u4e4b\u540e\u4fbf\u53ef\u4ee5\u5168\u5c40\u4f7f\u7528nginx\u547d\u4ee4\u4e86<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<h3 style=\"margin-left:0px;margin-right:0px\">\u9519\u8bef\u4e09&#xff1a;ssl\u8bc1\u4e66\u6587\u4ef6\u65e0\u6cd5\u627e\u5230<\/h3>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"82\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065129-680347f139a05.jpg\" width=\"989\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6211\u8fd9\u91cc\u7684\u95ee\u9898\u662f&#xff0c;\u5728\/usr\/local\/nginx\/conf\/\u76ee\u5f55\u4e0b\u65b0\u5efa\u91cc\u4e00\u4e2aservice\/\u76ee\u5f55&#xff0c;\u7136\u540e.pem\u548c.key\u6587\u4ef6\u90fd\u653e\u5728\u91cc\u9762&#xff0c;\u914d\u7f6e\u4fe1\u606f\u662f\u586b\u5199\u7684\u7edd\u5bf9\u8def\u5f84\u3002\u8fd8\u662f\u65e0\u6cd5\u5bfc\u5165&#xff0c;\u8bbe\u7f6e\u4e86777\u6743\u9650\u90fd\u65e0\u6cd5\u8bfb\u53d6&#xff0c;\u4f7f\u7528<\/p>\n<p>ls -l \/usr\/local\/nginx\/conf\/server\/xxxxx.pem <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u547d\u4ee4\u5bfb\u627e\u8fd4\u56de\u6ca1\u6709\u6b64\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u4f46\u662f\u5168\u5c40\u641c\u7d22\u547d\u4ee4\u53c8\u5728\u6b64\u76ee\u5f55\u4e0b\u627e\u5230\u4e86\u6b64\u6587\u4ef6<\/p>\n<p>find \/ -name &#034;xxxxx.pem&#034; <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6700\u540e&#xff0c;\u6211\u53d1\u73b0\u65e0\u8bba\u628a\u8fd9\u4e2aservice\u76ee\u5f55\u653e\u5230\u54ea\u91cc\u90fd\u6ca1\u6cd5\u627e\u5230ssl\u914d\u7f6e\u6587\u4ef6\u2026\u2026&#x1f613;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7136\u540e\u6211\u53d1\u73b0&#xff0c;\u5176\u5b9e\u5df2\u7ecf\u6709\u4e00\u4e2a\u5b58\u653e\u521d\u59cb.pem\u6587\u4ef6\u7684\u76ee\u5f55\u4e86&#xff0c;<span style=\"color:red\">\/etc\/ssl\/certs<\/span><span style=\"color:red\">&#xff0c;\u5176\u4e2d<\/span><span style=\"color:red\">certs<\/span><span style=\"color:red\">\u662f\u4e00\u4e2a\u94fe\u63a5&#xff0c;\u94fe\u63a5\u5230<\/span><span style=\"color:red\">\/etc\/pki\/tls\/certs\/<\/span><span style=\"color:red\">&#xff0c;\u91cc\u9762\u662f\u9ed8\u8ba4\u7684\u51e0\u4e2a\u6587\u4ef6&#xff0c;\u628a\u4ed6\u4eec\u5220\u9664&#xff0c;\u7136\u540e\u653e\u4e0a\u81ea\u5df1\u7684\u76f8\u5173\u914d\u7f6e<\/span><span style=\"color:red\">SSL<\/span><span style=\"color:red\">\u6587\u4ef6&#xff0c;\u7136\u540e\u8fd0\u884c<\/span><\/p>\n<p>nginx -t <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd4\u56de<\/p>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"74\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065129-680347f169295.jpg\" width=\"831\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6210\u529f\u4e86&#xff0c;\u8fd9\u4e2a\u5b58\u653enginx\u7684SSL\u914d\u7f6e\u6587\u4ef6\u7684\u95ee\u9898&#xff0c;\u6211\u770b\u7f51\u4e0a\u5176\u4ed6\u6559\u7a0b\u8bf4\u662f\u5728\u54ea\u91cc\u90fd\u884c&#xff0c;\u6211\u8fd9\u4e2a\u5374\u4e0d\u4e00\u6837&#xff0c;\u53ef\u80fd\u662f\u7248\u672c\u7684\u95ee\u9898&#xff0c;\u4e5f\u53ef\u80fd\u662f\u6211\u64cd\u4f5c\u7684\u95ee\u9898&#xff0c;\u5e0c\u671b\u6709\u5927\u4f6c\u5728\u8bc4\u8bba\u533a\u53ef\u4ee5\u6307\u51fa\u8fd9\u4e2a\u95ee\u9898\u662f\u600e\u4e48\u56de\u4e8b\u3002<\/p>\n<h3 style=\"margin-left:0px;margin-right:0px\"><\/h3>\n<h3 style=\"margin-left:0px;margin-right:0px\">\u9519\u8bef\u56db&#xff1a;\u7aef\u53e3\u5360\u7528<\/h3>\n<p style=\"margin-left:0;margin-right:0\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"179\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065129-680347f19a2af.jpg\" width=\"830\" \/><\/p>\n<li>\u4fee\u6539nginx.config\u6587\u4ef6\u91cc\u8fd0\u884c\u7684\u7aef\u53e3\u53f7&#xff1b;\u6ca1\u5565\u597d\u8bf4\u7684&#xff0c;\u5efa\u8bae\u4fee\u65398080<\/li>\n<li>\u67e5\u770b\u81ea\u5df1\u914d\u7f6e\u7684nginx\u7aef\u53e3\u53f7\u4e0a\u8fd0\u884c\u91cc\u8fdb\u7a0b&#xff0c;\u5e76\u5173\u95ed\u6b64\u8fdb\u7a0b\u540e\u91cd\u65b0\u8fd0\u884c\u3002&#xff08;\u6ce8\u610f&#xff0c;\u4e00\u5b9a\u8981\u67e5\u770b\u4e00\u4e0b\u6b64\u5360\u7528\u8fdb\u7a0b\u662f\u5426\u6709\u7528&#xff0c;\u4e0d\u8981\u610f\u5916\u5173\u95ed\u8fd0\u884c\u5728\u6b64\u7aef\u53e3\u4e0a\u7684\u91cd\u8981\u8fdb\u7a0b&#xff09;<\/li>\n<p>sudo netstat -tlnp | grep :80<\/p>\n<p>sudo kill -9 2404 &#xff08;\u4f60\u7684\u8fdb\u7a0b\u53f7&#xff09;<\/p>\n<p>sudo netstat -tlnp | grep :80 <\/p>\n<p>\u00a0\u518d\u6b21\u67e5\u770b&#xff0c;\u6ca1\u6709\u8fdb\u7a0b\u540e&#xff0c;\u518d\u542f\u52a8nginx<\/p>\n<p>.\/nginx <\/p>\n<hr \/>\n<p>\u6700\u540e&#xff0c;\u6b22\u8fce\u5927\u5bb6\u7559\u8a00\u8ba8\u8bba\u4ee5\u53ca\u7ea0\u6b63\u6587\u7ae0\u4e2d\u7684\u9519\u8bef&#x1f642;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb881\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002NGINX\u5728Linux\u4e0b\u7684\u914d\u7f6e\u4ee5\u53ca\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66\uff1b\u5e76\u4e14\u5199\u4e86\u4e00\u4e9b\u5e38\u89c1\u9519\u8bef\u53ca\u5176\u89e3\u51b3\u65b9\u6848<\/p>\n","protected":false},"author":2,"featured_media":26193,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1815,58,117,606,44],"topic":[],"class_list":["post-26204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ecs","tag-linux","tag-nginx","tag-ssl","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/26204.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb881\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002NGINX\u5728Linux\u4e0b\u7684\u914d\u7f6e\u4ee5\u53ca\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66\uff1b\u5e76\u4e14\u5199\u4e86\u4e00\u4e9b\u5e38\u89c1\u9519\u8bef\u53ca\u5176\u89e3\u51b3\u65b9\u6848\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/26204.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T06:51:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065127-680347ef74c2e.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/26204.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/26204.html\",\"name\":\"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T06:51:30+00:00\",\"dateModified\":\"2025-04-19T06:51:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/26204.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/26204.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/26204.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66----Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/26204.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb881\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002NGINX\u5728Linux\u4e0b\u7684\u914d\u7f6e\u4ee5\u53ca\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66\uff1b\u5e76\u4e14\u5199\u4e86\u4e00\u4e9b\u5e38\u89c1\u9519\u8bef\u53ca\u5176\u89e3\u51b3\u65b9\u6848","og_url":"https:\/\/www.wsisp.com\/helps\/26204.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T06:51:30+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419065127-680347ef74c2e.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/26204.html","url":"https:\/\/www.wsisp.com\/helps\/26204.html","name":"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66-Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T06:51:30+00:00","dateModified":"2025-04-19T06:51:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/26204.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/26204.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/26204.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728NGINX\u91cc\u914d\u7f6eSSL\u8bc1\u4e66----Linux\u7248\u672c\uff08ECS\u670d\u52a1\u5668\u53ef\u7528\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=26204"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26204\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/26193"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=26204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=26204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=26204"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=26204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}