{"id":32327,"date":"2025-04-23T23:41:21","date_gmt":"2025-04-23T15:41:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32327.html"},"modified":"2025-04-23T23:41:21","modified_gmt":"2025-04-23T15:41:21","slug":"%e8%ae%b0%e4%b8%80%e6%ac%a1%e8%85%be%e8%ae%af%e4%ba%91%e6%b5%b7%e5%a4%96%e6%9c%8d%e5%8a%a1%e5%99%a8http%e8%83%bd%e6%ad%a3%e5%b8%b8%e8%ae%bf%e9%97%aehttps%e8%ae%bf%e9%97%ae%e6%8b%92%e7%bb%9d%e9%97%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32327.html","title":{"rendered":"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b"},"content":{"rendered":"<p>\u6700\u8fd1\u53cc\u5341\u4e00,\u00a0 \u8d2d\u4e86\u4e00\u53f0\u817e\u8baf\u4e91\u7684\u6d77\u5916\u670d\u52a1\u5668&#xff0c; \u5f00\u901a\u540e\u5c31\u662f\u4e00\u5806\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u5b89\u88c5\u6570\u636e\u4e0a\u4f20\u548c\u914d\u7f6e&#xff0c;\u6ca1\u60f3\u5230&#xff0c;\u7b49\u5f85\u914d\u7f6e\u5b8c\u6210\u540e\u624d\u53d1\u73b0https\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee&#xff0c;\u4e8e\u662f\u5f00\u542f\u4e86\u81ea\u67e5\u3002<\/p>\n<h3 id=\"1.%20%E6%A3%80%E6%9F%A5nginx%E8%BD%AF%E4%BB%B6%E7%9A%84ssl%E9%85%8D%E7%BD%AE\">1. \u68c0\u67e5nginx\u8f6f\u4ef6\u7684ssl\u914d\u7f6e<\/h3>\n<p>nginx http\u00a0 https\u914d\u7f6e\u53c2\u8003<\/p>\n<p>server {<br \/>\n  listen 80;<br \/>\n  listen 443 ssl;<br \/>\n  # \u670d\u52a1\u57df\u540d\u914d\u7f6e_\u8868\u793a\u9ed8\u8ba4\u4e3b\u673a<br \/>\n  server_name _;<br \/>\n  # SSL\u8bc1\u4e66\u8def\u5f84\u914d\u7f6e<br \/>\n  ssl_certificate     \/etc\/nginx\/certs\/fullchain.pem;<br \/>\n  ssl_certificate_key \/etc\/nginx\/certs\/privkey.pem;<br \/>\n  # dhparam\u5bc6\u94a5\u534f\u5546\u534f\u8bae&#xff0c;\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u901a\u4fe1\u53cc\u65b9\u5b89\u5168\u5730\u4ea4\u6362\u5bc6\u94a5<br \/>\n  # \u751f\u6210\u547d\u4ee4: time openssl dhparam -out dhparam.pem 2048<br \/>\n  ssl_dhparam \/etc\/nginx\/certs\/dhparam.pem;<br \/>\n  ssl_session_timeout 1d;<br \/>\n  ssl_session_cache shared:SSL:50m;<br \/>\n  ssl_session_tickets off;<br \/>\n  # intermediate configuration. tweak to your needs.<br \/>\n  ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1;<br \/>\n  ssl_ciphers &#039;ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS&#039;;<br \/>\n  ssl_prefer_server_ciphers on;<\/p>\n<p>  # HSTS (ngx_http_headers_module is required) (15768000 seconds &#061; 6 months)<br \/>\n  add_header Strict-Transport-Security max-age&#061;15768000;<br \/>\n  proxy_set_header X-Forwarded-Proto https; <\/p>\n<p>  # OCSP Stapling &#8212;<br \/>\n  # fetch OCSP records from URL in ssl_certificate and cache them<br \/>\n  ssl_stapling on;<br \/>\n  ssl_stapling_verify on;<\/p>\n<p>  ## verify chain of trust of OCSP response using Root CA and Intermediate certs<br \/>\n  # ssl_trusted_certificate \/path\/to\/root_CA_cert_plus_intermediates;<\/p>\n<p>  #resolver &lt;IP DNS resolver&gt;;<br \/>\n  resolver 1.1.1.1 1.0.0.1 valid&#061;300s;<br \/>\n  resolver_timeout 10s;<\/p>\n<p>  #error page<br \/>\n  error_page 497 https:\/\/$host$request_uri; <\/p>\n<p>  # \u5e94\u7528\u8def\u5f84\u914d\u7f6e<br \/>\n  root \/opt\/myapp\/public;<br \/>\n  # \u9519\u8bef\u65e5\u5fd7\u8def\u5f84\u914d\u7f6e<br \/>\n  error_log \/opt\/myapp\/log\/error.log;<br \/>\n  # \u9ed8\u8ba4\u9996\u9875\u6587\u4ef6\u914d\u7f6e<br \/>\n  index index.php index.html index.htm;<br \/>\n  # acme config<br \/>\n  location ~ \/.well-known\/acme-challenge {<br \/>\n        allow all;<br \/>\n        root \/usr\/share\/nginx\/html;<br \/>\n    }<\/p>\n<p>}<\/p>\n<h3 id=\"2.%E5%90%84%E7%A7%8D%E9%AA%8C%E8%AF%81%E8%AF%81%E4%B9%A6%E5%92%8Chttps%E7%9A%84%E5%B7%A5%E5%85%B7\">2.\u5404\u79cd\u9a8c\u8bc1\u8bc1\u4e66\u548chttps\u7684\u5de5\u5177<\/h3>\n<h4 id=\"%E9%87%8D%E5%90%AFnginx%E6%9C%8D%E5%8A%A1%E5%99%A8\">\u91cd\u542fnginx\u670d\u52a1\u5668<\/h4>\n<p>sudo nginx -s reload\u00a0<\/p>\n<p>\u5982\u679c\u51fa\u73b0\u95ee\u9898\u00a0nginx: [error] invalid PID number &#034;&#034; in &#034;\/run\/nginx.pid&#034;<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6 nginx.conf&#xff0c;\u7136\u540e\u518d\u6267\u884c reload sudo nginx -c \/etc\/nginx\/nginx.conf sudo nginx -s reload<\/p>\n<h4 id=\"%E6%A3%80%E6%B5%8BSSL%E8%AF%81%E4%B9%A6%E6%98%AF%E5%90%A6%E6%AD%A3%E5%B8%B8%E5%91%BD%E4%BB%A4\">\u68c0\u6d4bSSL\u8bc1\u4e66\u662f\u5426\u6b63\u5e38\u547d\u4ee4<\/h4>\n<p>openssl s_client -connect 43.153.202.138:443<\/p>\n<h4>\u68c0\u67e5\u5e76\u5173\u95ed\u670d\u52a1\u5668\u4e0a\u9762\u7684\u5404\u79cd\u9632\u706b\u5899<\/h4>\n<p>\u76ee\u524dlinux\u4e0b\u9762\u7684\u9ed8\u8ba4\u4e3b\u6d41\u9632\u706b\u5899\u5c312\u79cd\u9632\u706b\u5899 iptables\u548cufw\u00a0<\/p>\n<p>\u817e\u8baf\u4e91\u9762\u677f\u91cc\u9762\u7684\u9632\u706b\u5899\u8c8c\u4f3c\u5c31\u662f\u7ba1\u7406\u7684\u670d\u52a1\u5668\u4e2d\u7684iptables\u9632\u706b\u5899\u3002<\/p>\n<p>iptables\u9632\u706b\u5899\u5173\u95ed<\/p>\n<p>#\u67e5\u770b\u5f53\u524d\u7684\u9632\u706b\u5899\u89c4\u5219<br \/>\nsudo iptables -L<\/p>\n<p># \u5173\u95ed\u9632\u706b\u5899<br \/>\nsudo systemctl disable iptables<\/p>\n<p>sudo chkconfig iptables off<\/p>\n<p>sudo systemctl stop iptables <\/p>\n<p>ufw\u9632\u706b\u5899<\/p>\n<p>#\u67e5\u770bUFW\u7684\u8fd0\u884c\u72b6\u6001:<br \/>\nsudo ufw status<\/p>\n<p># \u91cd\u7f6e\u9632\u706b\u5899\u89c4\u5219<br \/>\nsudo ufw reset<\/p>\n<p>#\u5173\u95ed UFW \u9632\u706b\u5899:<br \/>\nsudo ufw disable<\/p>\n<h4 id=\"%E4%BD%BF%E7%94%A8curl%E6%9D%A5%E8%AE%BF%E9%97%AE%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6%E8%83%BD%E6%AD%A3%E5%B8%B8%E8%AE%BF%E9%97%AE%EF%BC%8C%E5%88%86%E5%88%AB%E4%BB%A5%E5%BF%BD%E7%95%A5%E8%AF%81%E4%B9%A6%E9%AA%8C%E8%AF%81%E5%92%8C%E6%AD%A3%E5%B8%B8%E8%AE%BF%E9%97%AE%E5%B9%B6%E6%89%93%E5%8D%B0debug%E6%97%A5%E5%BF%97\">\u4f7f\u7528curl\u6765\u8bbf\u95ee\u67e5\u770b\u662f\u5426\u80fd\u6b63\u5e38\u8bbf\u95ee&#xff0c;\u5206\u522b\u4ee5\u5ffd\u7565\u8bc1\u4e66\u9a8c\u8bc1\u548c\u6b63\u5e38\u8bbf\u95ee\u5e76\u6253\u5370debug\u65e5\u5fd7<\/h4>\n<p>\u5ffd\u7565\u8bc1\u4e66\u9a8c\u8bc1&#xff1a;curl -v -k https:\/\/43.153.202.138\/<\/p>\n<p>\u6ce8\u610f\u8fd9\u91cc\u7684 -v \u662f\u6253\u5370debug\u65e5\u5fd7&#xff0c;\u00a0 -k \u5ffd\u7565\u8bc1\u4e66\u9a8c\u8bc1<\/p>\n<p>\u6b63\u5e38\u8bbf\u95ee&#xff1a;\u00a0curl -v https:\/\/43.153.202.138\/<\/p>\n<p>\u4e0a\u9762\u8fd9\u4e9b\u90fd\u662f\u5728\u670d\u52a1\u5668\u4e0a\u9762\u8fdb\u884c&#xff0c;\u6d4b\u8bd5\u7ed3\u679c\u90fd\u6b63\u5e38\u3002 \u4f46\u662f\u6362\u5230\u672c\u673a\u6d4f\u89c8\u5668\u8bbf\u95ee\u65f6\u5c31\u53ea\u6709http\u80fd\u8bbf\u95ee&#xff0c; https \u94fe\u63a5\u5168\u90e8\u88ab\u62d2\u7edd<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154111-68090a173acc6.jpg\" width=\"1200\" \/><\/p>\n<h4 id=\"%E7%AC%AC%E4%B8%89%E6%96%B9%E5%A4%96%E9%83%A8%E5%B7%A5%E5%85%B7%E6%A3%80%E6%B5%8B\">\u7b2c\u4e09\u65b9\u5916\u90e8\u5de5\u5177\u68c0\u6d4b<\/h4>\n<p>\u7f51\u7ad9\u662f\u5426\u6b63\u5e38\u68c0\u6d4b\u5de5\u5177https:\/\/downforeveryoneorjustme.com\u8fd9\u91cc\u53ef\u4ee5\u68c0\u6d4b\u662f\u53ea\u6709\u4f60\u81ea\u5df1\u4e0d\u80fd\u8bbf\u95ee\u8fd8\u662f\u6240\u6709\u4eba\u90fd\u4e0d\u80fd\u8bbf\u95ee.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1172\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154112-68090a185f4e9.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"SSL%E6%9C%8D%E5%8A%A1%E7%AB%AF%E8%AF%81%E4%B9%A6%E6%A3%80%E6%B5%8B%E5%B7%A5%E5%85%B7%C2%A0\">SSL\u670d\u52a1\u7aef\u8bc1\u4e66\u68c0\u6d4b\u5de5\u5177\u00a0<\/h4>\n<p>SSL\u670d\u52a1\u7aef\u8bc1\u4e66\u68c0\u6d4b\u5de5\u5177https:\/\/www.ssllabs.com\/ssltest\/index.html\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u5b8c\u6574\u7684\u6d4b\u8bd5\u4f60\u7684\u670d\u52a1\u5668SSL\u8bc1\u4e66\u7684\u4fe1\u606f<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1048\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154113-68090a19949a9.png\" width=\"1200\" \/><\/p>\n<p>\u8f93\u5165\u8981\u6d4b\u8bd5\u7684\u4e3b\u673a\u540d&#xff0c;\u7136\u540esubmit\u5373\u53ef\u67e5\u770b\u670d\u52a1\u5668SSL\u8bc1\u4e66\u7684\u8be6\u7ec6\u4fe1\u606f&#xff0c;\u5982\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154114-68090a1aae22c.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u7ecf\u8fc7\u4e00\u7cfb\u5217\u7684\u914d\u7f6e\u548c\u64cd\u4f5c\u540e&#xff0c;\u672c\u5730\u8bbf\u95eehttp\u95ee\u9898\u4f9d\u7136\u5b58\u5728&#xff0c;\u4e8e\u662f\u5c31\u53ea\u80fd \u5de5\u5355\u4e86<\/p>\n<\/p>\n<h3 id=\"3.%E8%85%BE%E8%AE%AF%E4%BA%91%E5%B7%A5%E5%8D%95\">3.\u817e\u8baf\u4e91\u5de5\u5355<\/h3>\n<h4 id=\"%E7%AC%AC%E4%B8%80%E6%AC%A1%E5%B7%A5%E5%8D%95%2011%E6%9C%8829%E6%97%A518%E7%82%B923%E5%88%86\">\u7b2c\u4e00\u6b21\u5de5\u5355 11\u670829\u65e518\u70b923\u5206<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"604\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154116-68090a1c4dd33.png\" width=\"1200\" \/><\/p>\n<p>\u4e8e\u662f\u63a5\u4e0b\u6765\u5c31\u662f&#xff0c; \u4fee\u6539\u57df\u540dDNS\u89e3\u6790\u670d\u52a1\u5546\u4e3a\u817e\u8baf\u4e91&#xff0c;\u76f4\u63a5\u91cd\u88c5\u7cfb\u7edf&#xff0c;\u5404\u79cd\u7cfb\u7edf\u91cd\u88c5\u4e00\u6b21&#xff0c;\u95ee\u9898\u4f9d\u65e7\u5b58\u5728&#xff0c;\u6700\u540e\u76f4\u63a5\u5e72\u8106\u91cf\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u6362\u6210\u817e\u8baf\u51fa\u54c1\u7684OpenCloudOS, \u7136\u540e\u91cc\u9762\u5c31\u53ea\u5b89\u88c5\u4e00\u4e2anginx,\u5176\u4ed6\u4efb\u4f55\u8f6f\u4ef6\u90fd\u4e0d\u5b89\u88c5&#8230;&#8230;..<\/p>\n<p>yum install nginx<\/p>\n<p>\u9ed8\u8ba4\u914d\u7f6e\u8def\u5f84 \/etc\/nginx<\/p>\n<p>\u68c0\u67e5\u8fd9\u4e2anginx\u7684\u6a21\u5757\u662f\u5426\u6709ssl\u6a21\u5757\u547d\u4ee4&#xff1a;\u00a0 nginx\u00a0 -V\u00a0 \u8fd9\u4e2a\u547d\u4ee4\u6267\u884c\u540e\u4f1a\u51fa\u6765\u4e00\u5806&#xff0c;SSL\u9ed8\u8ba4\u662f\u5b89\u88c5\u4e86\u7684\u3002<\/p>\n<p>\u518d\u6b21\u6765\u4e00\u904d\u4e0a\u9762\u7684\u5404\u79cd\u6d4b\u8bd5\u5de5\u5177\u548c\u8f6f\u4ef6\u90fd\u7528\u4e0a\u3002<\/p>\n<p>\u4e8e\u662f\u5fcd\u65e0\u53ef\u5fcd&#xff0c;\u518d\u6b21\u53d1\u8d77\u5de5\u5355<\/p>\n<h4 id=\"%E7%AC%AC%E4%BA%8C%E6%AC%A1%E5%B7%A5%E5%8D%952024%E5%B9%B411%E6%9C%8830%E6%97%A523%3A47%E5%88%86\">\u7b2c\u4e8c\u6b21\u5de5\u53552024\u5e7411\u670830\u65e523:47\u5206<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1058\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154116-68090a1cacbfc.png\" width=\"1200\" \/><\/p>\n<p>\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u00a0<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"948\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154117-68090a1d3f61d.png\" width=\"1200\" \/><\/p>\n<p>\u6388\u6743\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u7136\u540e\u7b49\u4e86\u4e00\u665a\u4e0a\u3002\u3002\u3002\u3002\u3002\u3002<\/p>\n<p>\u7b2c\u4e8c\u5929\u53d1\u73b0\u95ee\u9898\u4f9d\u65e7&#xff0c;\u4e8e\u662f\u518d\u6b21\u5de5\u5355\u00a0<\/p>\n<h4 id=\"%E7%AC%AC%E4%B8%89%E6%AC%A1%E5%B7%A5%E5%8D%952024%E5%B9%B412%E6%9C%881%E6%97%A5%209%E7%82%B9\">\u7b2c\u4e09\u6b21\u5de5\u53552024\u5e7412\u67081\u65e5 9\u70b9<\/h4>\n<p>\u8fd9\u6b21\u628a\u6d4b\u8bd5\u7ed3\u679c\u4e00\u7cfb\u5217\u7684\u6d4b\u8bd5\u7ed3\u679c\u90fd\u53d1\u8fc7\u53bb\u540e&#xff0c;\u8fd9\u4f1a\u4e0d\u8bf4\u662f\u6211\u4e1a\u52a1\u95ee\u9898\u4e86&#xff0c;\u6240\u793a\u8981\u8f6c\u63a5\u5176\u4ed6\u4eba\u6765\u63a5\u7740\u641e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"914\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154117-68090a1dbbb1a.png\" width=\"1200\" \/><\/p>\n<p>\u7ed9\u7ed3\u8bba\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"772\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154118-68090a1e467d4.png\" width=\"1200\" \/><\/p>\n<p>\u00a0\u8981\u6362IP, \u7136\u540e\u8ba9\u81ea\u5df1\u6362, \u6bcf\u4e2a\u670d\u52a1\u5668\u53ea\u80fd\u6362<span style=\"color:#fe2c24\">\u4e00\u6b21<\/span>, \u800c\u4e14IP\u662f\u968f\u673a\u7684&#xff01;&#xff01;<\/p>\n<p>\u4e8e\u662f\u817e\u8baf\u4e91\u5c31\u5f00\u542f\u8f66\u8f71\u8f98\u5f0f\u7684\u6362IP\u7529\u9505&#xff0c; \u4e0d\u7ed9\u589e\u52a0\u6b21\u6570\u9650\u5236\u5c31\u662f\u8ba9\u4f60\u81ea\u5df1\u7528\u90a3\u4e00\u6b21\u968f\u673a\u7684\u673a\u4f1a\u6362IP&#xff0c;\u7528\u4e86\u8fd9\u4e00\u6b21\u673a\u4f1a\u540e\u9762IP\u4e0d\u80fd\u7528\u7684\u8bdd\u8fd9\u4e2a\u670d\u52a1\u5668\u5c31\u5f7b\u5e95\u62a5\u5e9f\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"858\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154118-68090a1eb505c.png\" width=\"1200\" \/><\/p>\n<p>\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154119-68090a1f34d6d.png\" width=\"1200\" \/><\/p>\n<\/p>\n<p>\u5ba2\u670d\u6001\u5ea6\u6076\u52a3&#xff0c;\u4e8e\u662f\u5fcd\u65e0\u53ef\u5fcd\u5f00\u542f\u6295\u8bc9\u52a0\u7535\u8bdd\u6a21\u5f0f&#8230;&#8230;&#8230;&#8230;..<\/p>\n<h4 id=\"%E6%8A%95%E8%AF%89%E5%90%8E%E5%B7%A5%E5%8D%95%E8%A2%AB%E5%86%8D%E6%AC%A1%E8%BD%AC%E7%A7%BB%E5%88%B0%E7%BD%91%E7%BB%9C%E9%83%A8\"><\/h4>\n<h3 id=\"%E8%AF%89%E5%90%8E%E5%B7%A5%E5%8D%95%E8%A2%AB%E5%86%8D%E6%AC%A1%E8%BD%AC%E7%A7%BB%E5%88%B0%E7%BD%91%E7%BB%9C%E9%83%A8\">\u5fcd\u65e0\u53ef\u5fcd&#xff0c;\u5f00\u542f\u6295\u8bc9\u6a21\u5f0f \u5de5\u5355\u88ab\u518d\u6b21\u8f6c\u79fb\u5230\u7f51\u7edc\u90e8<\/h3>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"956\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154119-68090a1fd49f5.png\" width=\"1200\" \/><\/p>\n<p>\u8fd9\u6b21\u7ec8\u4e8e\u662f\u6709\u7ed3\u679c\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"294\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154120-68090a205f25e.png\" width=\"1200\" \/><\/p>\n<p>\u7136\u540e\u6362IP&#xff0c; \u95ee\u9898\u7ec8\u4e8e\u89e3\u51b3&#8230;&#8230;&#8230;.<\/p>\n<\/p>\n<h3>\u603b\u7ed3&#xff1a; http\u80fd\u7528https\u4e0d\u80fd\u7528&#xff0c;\u8fd9\u4e2a\u95ee\u9898\u4e5f\u53ef\u80fd\u4e0d\u4ec5\u4ec5\u662f\u4f60\u7684\u914d\u7f6e\u95ee\u9898\u3002\u76ee\u524d\u8fd9\u4e9b\u6240\u8c13\u5927\u5382\u91cc\u9762\u7684\u5de5\u7a0b\u5e08\u4e5f\u4e0d\u662f\u6bcf\u4e2a\u90fd\u6280\u672f\u8fc7\u786c\u7684&#xff0c;\u672c\u6b21\u5c31\u4e00\u4e2a\u7b80\u5355\u95ee\u9898\u6280\u672f\u4eba\u5458\u5c31\u6362\u4e86\u4e00\u6b21\u53c8\u4e00\u6b21&#xff01;\u6700\u540e\u95ee\u9898\u8fd8\u5f97\u81ea\u5df1\u6765\u6392\u67e5\u548c\u53d1\u73b0&#xff01; \u6700\u7ec8\u6392\u67e5\u51fa\u662f\u670d\u52a1\u5546\u81ea\u5df1\u7684\u4ea7\u54c1\u95ee\u9898\u540e\u5c45\u7136\u8fd8\u548c\u5ba2\u6237\u8e22\u76ae\u7403&#xff0c;\u00a0\u5b9e\u5728\u65e0\u8bed&#8230;&#8230;&#8230;..<\/h3>\n<\/p>\n<h3><\/h3>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u6700\u8fd1\u53cc\u5341\u4e00,  \u8d2d\u4e86\u4e00\u53f0\u817e\u8baf\u4e91\u7684\u6d77\u5916\u670d\u52a1\u5668\uff0c \u5f00\u901a\u540e\u5c31\u662f\u4e00\u5806\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u5b89\u88c5\u6570\u636e\u4e0a\u4f20\u548c\u914d\u7f6e\uff0c\u6ca1\u60f3\u5230\uff0c\u7b49\u5f85\u914d\u7f6e\u5b8c\u6210\u540e\u624d\u53d1\u73b0https\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\uff0c\u4e8e\u662f\u5f00\u542f\u4e86\u81ea\u67e5\u3002nginx http  https\u914d\u7f6e\u53c2\u80032.\u5404\u79cd\u9a8c\u8bc1\u8bc1\u4e66\u548chttps\u7684\u5de5\u5177\u91cd\u542fnginx\u670d\u52a1\u5668sudo nginx -s reload \u5982\u679c\u51fa\u73b0\u95ee\u9898 nginx: [error] invalid PID number &quot;&quot; in &quot;\/run\/nginx.pid&quot;\u89e3\u51b3\u65b9\u6cd5\uff1a\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6 nginx.conf\uff0c\u7136\u540e\u518d\u6267\u884c reload_no peer certificate available<\/p>\n","protected":false},"author":2,"featured_media":32314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[622,58,606,97,43,2625,351,2624],"topic":[],"class_list":{"0":"post-32327","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-https","9":"tag-linux","10":"tag-ssl","11":"tag-97","12":"tag-43","14":"tag-351","15":"tag-2624"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \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\/32327.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u6700\u8fd1\u53cc\u5341\u4e00, \u8d2d\u4e86\u4e00\u53f0\u817e\u8baf\u4e91\u7684\u6d77\u5916\u670d\u52a1\u5668\uff0c \u5f00\u901a\u540e\u5c31\u662f\u4e00\u5806\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u5b89\u88c5\u6570\u636e\u4e0a\u4f20\u548c\u914d\u7f6e\uff0c\u6ca1\u60f3\u5230\uff0c\u7b49\u5f85\u914d\u7f6e\u5b8c\u6210\u540e\u624d\u53d1\u73b0https\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\uff0c\u4e8e\u662f\u5f00\u542f\u4e86\u81ea\u67e5\u3002nginx http https\u914d\u7f6e\u53c2\u80032.\u5404\u79cd\u9a8c\u8bc1\u8bc1\u4e66\u548chttps\u7684\u5de5\u5177\u91cd\u542fnginx\u670d\u52a1\u5668sudo nginx -s reload \u5982\u679c\u51fa\u73b0\u95ee\u9898 nginx: [error] invalid PID number &quot;&quot; in &quot;\/run\/nginx.pid&quot;\u89e3\u51b3\u65b9\u6cd5\uff1a\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6 nginx.conf\uff0c\u7136\u540e\u518d\u6267\u884c reload_no peer certificate available\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32327.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-23T15:41:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154111-68090a173acc6.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32327.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32327.html\",\"name\":\"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-23T15:41:21+00:00\",\"dateModified\":\"2025-04-23T15:41:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32327.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32327.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32327.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b\"}]},{\"@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":"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \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\/32327.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf20\u6b21\u3002\u6700\u8fd1\u53cc\u5341\u4e00, \u8d2d\u4e86\u4e00\u53f0\u817e\u8baf\u4e91\u7684\u6d77\u5916\u670d\u52a1\u5668\uff0c \u5f00\u901a\u540e\u5c31\u662f\u4e00\u5806\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u5b89\u88c5\u6570\u636e\u4e0a\u4f20\u548c\u914d\u7f6e\uff0c\u6ca1\u60f3\u5230\uff0c\u7b49\u5f85\u914d\u7f6e\u5b8c\u6210\u540e\u624d\u53d1\u73b0https\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\uff0c\u4e8e\u662f\u5f00\u542f\u4e86\u81ea\u67e5\u3002nginx http https\u914d\u7f6e\u53c2\u80032.\u5404\u79cd\u9a8c\u8bc1\u8bc1\u4e66\u548chttps\u7684\u5de5\u5177\u91cd\u542fnginx\u670d\u52a1\u5668sudo nginx -s reload \u5982\u679c\u51fa\u73b0\u95ee\u9898 nginx: [error] invalid PID number &quot;&quot; in &quot;\/run\/nginx.pid&quot;\u89e3\u51b3\u65b9\u6cd5\uff1a\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6 nginx.conf\uff0c\u7136\u540e\u518d\u6267\u884c reload_no peer certificate available","og_url":"https:\/\/www.wsisp.com\/helps\/32327.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-23T15:41:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250423154111-68090a173acc6.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32327.html","url":"https:\/\/www.wsisp.com\/helps\/32327.html","name":"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-23T15:41:21+00:00","dateModified":"2025-04-23T15:41:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32327.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32327.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32327.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8bb0\u4e00\u6b21\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668http\u80fd\u6b63\u5e38\u8bbf\u95eehttps\u8bbf\u95ee\u62d2\u7edd\u95ee\u9898\u5904\u7406\u8fc7\u7a0b"}]},{"@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\/32327","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=32327"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32327\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32314"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32327"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}