{"id":46181,"date":"2025-07-30T02:33:45","date_gmt":"2025-07-29T18:33:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/46181.html"},"modified":"2025-07-30T02:33:45","modified_gmt":"2025-07-29T18:33:45","slug":"%e8%8b%a5%e4%be%9d%e9%83%a8%e7%bd%b2%e9%a1%b9%e7%9b%ae%e5%88%b0%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/46181.html","title":{"rendered":"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"%E4%B8%80%E3%80%81%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:0px\">\u4e00\u3001\u73af\u5883\u914d\u7f6e<\/p>\n<p id=\"redis-toc\" style=\"margin-left:40px\">redis<\/p>\n<p id=\"nginx%EF%BC%88%E5%AE%BF%E4%B8%BB%E6%9C%BA%7Cdokcer%EF%BC%89-toc\" style=\"margin-left:40px\">nginx&#xff08;\u5bbf\u4e3b\u673a|dokcer&#xff09;<\/p>\n<p id=\"1.%E5%AE%BF%E4%B8%BB%E6%9C%BA-toc\" style=\"margin-left:80px\">1.\u5bbf\u4e3b\u673a<\/p>\n<p id=\"2.docker-toc\" style=\"margin-left:80px\">2.docker<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E6%89%93%E5%8C%85jar%E5%8C%85-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u6253\u5305jar\u5305<\/p>\n<p id=\"0.%E6%9F%A5%E7%9C%8B%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:40px\">0.\u67e5\u770b\u540e\u7aef\u914d\u7f6e<\/p>\n<p id=\"1.%E6%89%93%E5%8C%85%E5%90%8E%E7%AB%AF-toc\" style=\"margin-left:40px\">1.\u6253\u5305\u540e\u7aef<\/p>\n<p id=\"2.%E6%89%93%E5%8C%85%E5%89%8D%E7%AB%AF-toc\" style=\"margin-left:40px\">2.\u6253\u5305\u524d\u7aef<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E5%90%AF%E5%8A%A8-toc\" style=\"margin-left:0px\">\u4e09\u3001\u542f\u52a8<\/p>\n<p id=\"1.%E5%90%8E%E7%AB%AF-toc\" style=\"margin-left:40px\">1.\u540e\u7aef<\/p>\n<p id=\"2.%E5%89%8D%E7%AB%AF-toc\" style=\"margin-left:40px\">2.\u524d\u7aef<\/p>\n<p id=\"%C2%A0%E5%9B%9B%E3%80%81%E4%BB%A5%E4%B8%8A%E9%83%A8%E7%BD%B2%E5%B8%B8%E8%A7%81%E5%91%BD%E4%BB%A4%2F%E9%94%99%E8%AF%AF-toc\" style=\"margin-left:0px\">\u00a0\u56db\u3001\u4ee5\u4e0a\u90e8\u7f72\u5e38\u89c1\u547d\u4ee4\/\u9519\u8bef<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E4%B8%80%E3%80%81%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE\">\u4e00\u3001\u73af\u5883\u914d\u7f6e<\/h2>\n<p>\u4e4b\u524d\u7684\u8bfe\u90fd\u914d\u8fc7&#xff0c;\u5148\u770b\u770b\u81ea\u5df1\u914d\u4e86\u6ca1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"484\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183328-688913f80804f.png\" width=\"2094\" \/><\/p>\n<p>\u00a0\u770b\u770b\u542f\u52a8\u4e86\u5565\u00a0 docker ps<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"277\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183329-688913f9adb74.png\" width=\"2335\" \/><\/p>\n<h3 id=\"redis\">redis<\/h3>\n<p>\u89c1\u4e0a\u00a0 redis\u542f\u7528\u8fc7\u4e86<\/p>\n<h3 id=\"nginx%EF%BC%88%E5%AE%BF%E4%B8%BB%E6%9C%BA%7Cdokcer%EF%BC%89\">nginx&#xff08;\u5bbf\u4e3b\u673a|dokcer&#xff09;<\/h3>\n<h4 id=\"1.%E5%AE%BF%E4%B8%BB%E6%9C%BA\">1.\u5bbf\u4e3b\u673a<\/h4>\n<p>\u5f3a\u5236\u542f\u52a8&#xff0c;\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f&#xff0c;\u6ca1\u6709\u5c31\u662f\u7aef\u53e3\u5360\u7528&#xff0c;\u5173\u4e86\u5c31\u884c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"223\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183330-688913fa85be2.png\" width=\"1925\" \/><\/p>\n<p>\u00a0\u5982\u679c\u6709\u4ee5\u4e0b&#xff0c;\u5219\u8bc1\u660e\u662fdocker\u91cc\u8fb9\u7684&#xff0c;\u8981\u4e48\u89c12&#xff0c;\u8981\u4e48\u505c\u4e86dokcer\u518d1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"659\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183331-688913fb262b7.png\" width=\"734\" \/><\/p>\n<h4 id=\"2.docker\">2.docker<\/h4>\n<p>docker run -d &#8211;name nginx\\\\<br \/>\n   -p 80:80 \\\\<br \/>\n   &#8211;restart&#061;always \\\\<br \/>\n   -v \/opt\/nginx\/conf\/nginx.conf:\/etc\/nginx\/nginx.conf \\\\<br \/>\n   -v \/opt\/nginx\/html\/dist:\/usr\/share\/nginx\/html \\\\<br \/>\n nginx:1.25.0 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"305\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183331-688913fb89f1e.png\" width=\"1779\" \/><\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E6%89%93%E5%8C%85jar%E5%8C%85\">\u4e8c\u3001\u6253\u5305jar\u5305<\/h2>\n<h3 id=\"0.%E6%9F%A5%E7%9C%8B%E5%90%8E%E7%AB%AF%E9%85%8D%E7%BD%AE\">0.\u67e5\u770b\u540e\u7aef\u914d\u7f6e<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1125\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183332-688913fc0596f.png\" width=\"2372\" \/><\/p>\n<h3 id=\"1.%E6%89%93%E5%8C%85%E5%90%8E%E7%AB%AF\">1.\u6253\u5305\u540e\u7aef<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"360\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183334-688913fe7f920.png\" width=\"1951\" \/><\/p>\n<p>\u6253\u5305\u4e4b\u540e\u7684\u5728\u8fd9\u91cc&#x1f447;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"522\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183335-688913ff1b4b0.png\" width=\"912\" \/><\/p>\n<h3 id=\"2.%E6%89%93%E5%8C%85%E5%89%8D%E7%AB%AF\">2.\u6253\u5305\u524d\u7aef<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"890\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183335-688913ff5a043.png\" width=\"2436\" \/><\/p>\n<h2 id=\"%E4%B8%89%E3%80%81%E5%90%AF%E5%8A%A8\">\u4e09\u3001\u542f\u52a8<\/h2>\n<h3 id=\"1.%E5%90%8E%E7%AB%AF\">1.\u540e\u7aef<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"204\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183336-6889140070d4b.png\" width=\"821\" \/><\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"167\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183336-6889140087b35.png\" width=\"1178\" \/><\/p>\n<p>\u5207\u6362\u5230\u81ea\u5df1\u7684jar\u5305\u653e\u7f6e\u8def\u5f84<br \/>\njava -jar ruoyi-admin.jar <\/p>\n<p>\u00a0\u8fd9\u6837\u5c31\u542f\u52a8\u6210\u529f\u540e\u7aef\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"560\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183336-68891400a6fb1.png\" width=\"1153\" \/><\/p>\n<p>\u00a0\u8bbf\u95ee\u8def\u5f84\u00a0 \u516c\u7f51\u5730\u5740:8080<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"144\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183336-68891400ec804.png\" width=\"900\" \/><\/p>\n<h3 id=\"2.%E5%89%8D%E7%AB%AF\">2.\u524d\u7aef<\/h3>\n<p>\u628a\u6253\u5305\u597d\u7684dist\u590d\u5236\u5230\u5bbf\u4e3b\u673a\u4e0a&#xff0c;\u6ce8\u610f\u81ea\u5df1\u7684\u8def\u5f84<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"165\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183337-68891401074c5.png\" width=\"810\" \/><\/p>\n<p>\u00a0\u66f4\u6539\u8fd9\u91cc\u8fb9\u7684conf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"405\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183337-688914011cdb5.png\" width=\"830\" \/><\/p>\n<p>\u00a0\u4e3b\u8981\u66f4\u6539\u5730\u65b9\u548c\u6e90\u7801\u5728&#x1f447;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1068\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183337-688914013c591.png\" width=\"2324\" \/><\/p>\n<p>#user  nobody;<br \/>\nworker_processes  1;<\/p>\n<p>#error_log  logs\/error.log;<br \/>\n#error_log  logs\/error.log  notice;<br \/>\n#error_log  logs\/error.log  info;<\/p>\n<p>#pid        logs\/nginx.pid;<\/p>\n<p>events {<br \/>\n    worker_connections  1024;<br \/>\n}<\/p>\n<p>http {<br \/>\n    include       mime.types;<br \/>\n    default_type  application\/octet-stream;<\/p>\n<p>    #log_format  main  &#039;$remote_addr &#8211; $remote_user [$time_local] &#034;$request&#034; &#039;<br \/>\n    #                  &#039;$status $body_bytes_sent &#034;$http_referer&#034; &#039;<br \/>\n    #                  &#039;&#034;$http_user_agent&#034; &#034;$http_x_forwarded_for&#034;&#039;;<\/p>\n<p>    #access_log  logs\/access.log  main;<\/p>\n<p>    sendfile        on;<br \/>\n    #tcp_nopush     on;<\/p>\n<p>    #keepalive_timeout  0;<br \/>\n    keepalive_timeout  65;<\/p>\n<p>    #gzip  on;<\/p>\n<p>    server {<br \/>\n        listen       80;<br \/>\n        server_name  82.157.170.39 localhost;<\/p>\n<p>        #charset koi8-r;<\/p>\n<p>        #access_log  logs\/host.access.log  main;<\/p>\n<p>        location \/ {<br \/>\n            root   \/opt\/nginx\/html\/dist;<br \/>\n            try_files $uri $uri\/ \/index.html;<br \/>\n            index  index.html index.htm;<br \/>\n        }<br \/>\n        location \/prod-api\/ {<br \/>\nproxy_set_header Host $host;<br \/>\n            proxy_set_header X-Real-IP $remote_addr;<br \/>\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\nproxy_pass http:\/\/172.17.0.1:8080\/;<br \/>\n}<\/p>\n<p>        #error_page  404              \/404.html;<\/p>\n<p>        # redirect server error pages to the static page \/50x.html<br \/>\n        #<br \/>\n        error_page   500 502 503 504  \/50x.html;<br \/>\n        location &#061; \/50x.html {<br \/>\n            root   \/opt\/nginx\/html\/dist;<br \/>\n        }<\/p>\n<p>        # proxy the PHP scripts to Apache listening on 127.0.0.1:80<br \/>\n        #<br \/>\n        #location ~ \\\\.php$ {<br \/>\n        #    proxy_pass   http:\/\/127.0.0.1;<br \/>\n        #}<\/p>\n<p>        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br \/>\n        #<br \/>\n        #location ~ \\\\.php$ {<br \/>\n        #    root           html;<br \/>\n        #    fastcgi_pass   127.0.0.1:9000;<br \/>\n        #    fastcgi_index  index.php;<br \/>\n        #    fastcgi_param  SCRIPT_FILENAME  \/scripts$fastcgi_script_name;<br \/>\n        #    include        fastcgi_params;<br \/>\n        #}<\/p>\n<p>        # deny access to .htaccess files, if Apache&#039;s document root<br \/>\n        # concurs with nginx&#039;s one<br \/>\n        #<br \/>\n        #location ~ \/\\\\.ht {<br \/>\n        #    deny  all;<br \/>\n        #}<br \/>\n    }<\/p>\n<p>    # another virtual host using mix of IP-, name-, and port-based configuration<br \/>\n    #<br \/>\n    #server {<br \/>\n    #    listen       8000;<br \/>\n    #    listen       somename:8080;<br \/>\n    #    server_name  somename  alias  another.alias;<\/p>\n<p>    #    location \/ {<br \/>\n    #        root   html;<br \/>\n    #        index  index.html index.htm;<br \/>\n    #    }<br \/>\n    #}<\/p>\n<p>    # HTTPS server<br \/>\n    #<br \/>\n    #server {<br \/>\n    #    listen       443 ssl;<br \/>\n    #    server_name  localhost;<\/p>\n<p>    #    ssl_certificate      cert.pem;<br \/>\n    #    ssl_certificate_key  cert.key;<\/p>\n<p>    #    ssl_session_cache    shared:SSL:1m;<br \/>\n    #    ssl_session_timeout  5m;<\/p>\n<p>    #    ssl_ciphers  HIGH:!aNULL:!MD5;<br \/>\n    #    ssl_prefer_server_ciphers  on;<\/p>\n<p>    #    location \/ {<br \/>\n    #        root   html;<br \/>\n    #        index  index.html index.htm;<br \/>\n    #    }<br \/>\n    #}<\/p>\n<p>}<\/p>\n<p>\u00a0\u8fd0\u884c\u5730\u5740\u00a0 \u516c\u7f51\u5730\u5740\u00a0 \u51fa\u6765\u9a8c\u8bc1\u7801\u5c31\u7b97\u5bf9\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1229\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183338-6889140279f85.png\" width=\"2404\" \/><\/p>\n<h2 id=\"%C2%A0%E5%9B%9B%E3%80%81%E4%BB%A5%E4%B8%8A%E9%83%A8%E7%BD%B2%E5%B8%B8%E8%A7%81%E5%91%BD%E4%BB%A4%2F%E9%94%99%E8%AF%AF\">\u00a0\u56db\u3001\u4ee5\u4e0a\u90e8\u7f72\u5e38\u89c1\u547d\u4ee4\/\u9519\u8bef<\/h2>\n<p>#\u67e5\u770b\u7aef\u53e3\u662f\u5426\u88ab\u5360\u7528<br \/>\nsudo netstat -tulnp | grep :80<\/p>\n<p>#\u67e5\u770b\u8fdb\u7a0b\u662f\u5426\u542f\u52a8<br \/>\nps aux | grep nginx<\/p>\n<p>#\u8fdb\u5165\u5bb9\u5668\u5185\u90e8<br \/>\ndocker exec -it nginx \/bin\/bash<\/p>\n<p>#\u67e5\u770b\u5bb9\u5668\u5185nginx.conf\u6587\u4ef6\u5185\u5bb9<br \/>\ncat etc\/nginx\/nginx.conf<\/p>\n<p>#\u5173\u4e8e\u9632\u706b\u5899<br \/>\nsystemctl start firewalld \u5f00\u542f\u9632\u706b\u5899<\/p>\n<p>systemctl restart firewalld \u91cd\u542f\u9632\u706b\u5899<\/p>\n<p>systemctl status firewalld \u67e5\u770b\u9632\u706b\u5899\u72b6\u6001<\/p>\n<p>systemctl disable firewalld \u5f00\u673a\u81ea\u52a8\u4e0d\u542f\u52a8\u9632\u706b\u5899<\/p>\n<p>firewall-cmd &#8211;permanent &#8211;add-port&#061;\u7aef\u53e3\/tcp \u8bbe\u7f6e\u9632\u706b\u5899\u653e<br \/>\n\u884c\u7aef\u53e3&#xff0c;\u6b64\u64cd\u4f5c\u9700\u8981\u91cd\u542f\u9632\u706b\u5899\u751f\u6548<\/p>\n<p># \u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u89c4\u5219<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p># \u8be6\u7ec6\u67e5\u770b\u653e\u884c\u7aef\u53e3<br \/>\nfirewall-cmd &#8211;list-all <\/p>\n<p>\u540e\u7aef\u6ca1\u4ec0\u4e48\u5927\u95ee\u9898&#xff0c;\u4e3b\u8981\u662f\u524d\u7aef<\/p>\n<p>\u5982\u679c\u6709404 500\u00a0 \u9875\u9762\u65e0\u6cd5\u8bbf\u95ee\u9519\u8bef&#xff0c;\u5c31\u662fnginx.conf\u914d\u7f6e\u6709\u9519&#xff0c;\u6216\u8005nginx\u542f\u52a8\u6709\u9519<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5982\u679c\u6709404 500  \u9875\u9762\u65e0\u6cd5\u8bbf\u95ee\u9519\u8bef\uff0c\u5c31\u662fnginx.conf\u914d\u7f6e\u6709\u9519\uff0c\u6216\u8005nginx\u542f\u52a8\u6709\u9519\u3002\u5982\u679c\u6709\u4ee5\u4e0b\uff0c\u5219\u8bc1\u660e\u662fdocker\u91cc\u8fb9\u7684\uff0c\u8981\u4e48\u89c12\uff0c\u8981\u4e48\u505c\u4e86dokcer\u518d1\u3002\u5f3a\u5236\u542f\u52a8\uff0c\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff0c\u6ca1\u6709\u5c31\u662f\u7aef\u53e3\u5360\u7528\uff0c\u5173\u4e86\u5c31\u884c\u3002\u628a\u6253\u5305\u597d\u7684dist\u590d\u5236\u5230\u5bbf\u4e3b\u673a\u4e0a\uff0c\u6ce8\u610f\u81ea\u5df1\u7684\u8def\u5f84\u3002\u8fd0\u884c\u5730\u5740  \u516c\u7f51\u5730\u5740  \u51fa\u6765\u9a8c\u8bc1\u7801\u5c31\u7b97\u5bf9\u4e86\u3002\u770b\u770b\u542f\u52a8\u4e86\u5565  docker ps\u3002\u4e4b\u524d\u7684\u8bfe\u90fd\u914d\u8fc7\uff0c\u5148\u770b\u770b\u81ea\u5df1\u914d\u4e86\u6ca1\u3002\u540e\u7aef\u6ca1\u4ec0\u4e48\u5927\u95ee\u9898\uff0c\u4e3b\u8981\u662f\u524d\u7aef\u3002\u4e3b\u8981\u66f4\u6539\u5730\u65b9\u548c\u6e90\u7801\u5728\ud83d\udc47\u3002\u8fd9\u6837\u5c31\u542f\u52a8\u6210\u529f\u540e\u7aef\u4e86\u3002\u66f4\u6539\u8fd9\u91cc\u8fb9\u7684conf\u3002_nginx\u90e8\u7f72\u82e5\u4f9d\u6846\u67b6\u81f3\u670d\u52a1\u5668<\/p>\n","protected":false},"author":2,"featured_media":46164,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,43,1117,44],"topic":[],"class_list":["post-46181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-43","tag-1117","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \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\/46181.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5982\u679c\u6709404 500 \u9875\u9762\u65e0\u6cd5\u8bbf\u95ee\u9519\u8bef\uff0c\u5c31\u662fnginx.conf\u914d\u7f6e\u6709\u9519\uff0c\u6216\u8005nginx\u542f\u52a8\u6709\u9519\u3002\u5982\u679c\u6709\u4ee5\u4e0b\uff0c\u5219\u8bc1\u660e\u662fdocker\u91cc\u8fb9\u7684\uff0c\u8981\u4e48\u89c12\uff0c\u8981\u4e48\u505c\u4e86dokcer\u518d1\u3002\u5f3a\u5236\u542f\u52a8\uff0c\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff0c\u6ca1\u6709\u5c31\u662f\u7aef\u53e3\u5360\u7528\uff0c\u5173\u4e86\u5c31\u884c\u3002\u628a\u6253\u5305\u597d\u7684dist\u590d\u5236\u5230\u5bbf\u4e3b\u673a\u4e0a\uff0c\u6ce8\u610f\u81ea\u5df1\u7684\u8def\u5f84\u3002\u8fd0\u884c\u5730\u5740 \u516c\u7f51\u5730\u5740 \u51fa\u6765\u9a8c\u8bc1\u7801\u5c31\u7b97\u5bf9\u4e86\u3002\u770b\u770b\u542f\u52a8\u4e86\u5565 docker ps\u3002\u4e4b\u524d\u7684\u8bfe\u90fd\u914d\u8fc7\uff0c\u5148\u770b\u770b\u81ea\u5df1\u914d\u4e86\u6ca1\u3002\u540e\u7aef\u6ca1\u4ec0\u4e48\u5927\u95ee\u9898\uff0c\u4e3b\u8981\u662f\u524d\u7aef\u3002\u4e3b\u8981\u66f4\u6539\u5730\u65b9\u548c\u6e90\u7801\u5728\ud83d\udc47\u3002\u8fd9\u6837\u5c31\u542f\u52a8\u6210\u529f\u540e\u7aef\u4e86\u3002\u66f4\u6539\u8fd9\u91cc\u8fb9\u7684conf\u3002_nginx\u90e8\u7f72\u82e5\u4f9d\u6846\u67b6\u81f3\u670d\u52a1\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/46181.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T18:33:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183328-688913f80804f.png\" \/>\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\/46181.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/46181.html\",\"name\":\"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T18:33:45+00:00\",\"dateModified\":\"2025-07-29T18:33:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/46181.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/46181.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46181.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668\"}]},{\"@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":"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \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\/46181.html","og_locale":"zh_CN","og_type":"article","og_title":"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5982\u679c\u6709404 500 \u9875\u9762\u65e0\u6cd5\u8bbf\u95ee\u9519\u8bef\uff0c\u5c31\u662fnginx.conf\u914d\u7f6e\u6709\u9519\uff0c\u6216\u8005nginx\u542f\u52a8\u6709\u9519\u3002\u5982\u679c\u6709\u4ee5\u4e0b\uff0c\u5219\u8bc1\u660e\u662fdocker\u91cc\u8fb9\u7684\uff0c\u8981\u4e48\u89c12\uff0c\u8981\u4e48\u505c\u4e86dokcer\u518d1\u3002\u5f3a\u5236\u542f\u52a8\uff0c\u67e5\u770b\u662f\u5426\u542f\u52a8\u6210\u529f\uff0c\u6ca1\u6709\u5c31\u662f\u7aef\u53e3\u5360\u7528\uff0c\u5173\u4e86\u5c31\u884c\u3002\u628a\u6253\u5305\u597d\u7684dist\u590d\u5236\u5230\u5bbf\u4e3b\u673a\u4e0a\uff0c\u6ce8\u610f\u81ea\u5df1\u7684\u8def\u5f84\u3002\u8fd0\u884c\u5730\u5740 \u516c\u7f51\u5730\u5740 \u51fa\u6765\u9a8c\u8bc1\u7801\u5c31\u7b97\u5bf9\u4e86\u3002\u770b\u770b\u542f\u52a8\u4e86\u5565 docker ps\u3002\u4e4b\u524d\u7684\u8bfe\u90fd\u914d\u8fc7\uff0c\u5148\u770b\u770b\u81ea\u5df1\u914d\u4e86\u6ca1\u3002\u540e\u7aef\u6ca1\u4ec0\u4e48\u5927\u95ee\u9898\uff0c\u4e3b\u8981\u662f\u524d\u7aef\u3002\u4e3b\u8981\u66f4\u6539\u5730\u65b9\u548c\u6e90\u7801\u5728\ud83d\udc47\u3002\u8fd9\u6837\u5c31\u542f\u52a8\u6210\u529f\u540e\u7aef\u4e86\u3002\u66f4\u6539\u8fd9\u91cc\u8fb9\u7684conf\u3002_nginx\u90e8\u7f72\u82e5\u4f9d\u6846\u67b6\u81f3\u670d\u52a1\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/46181.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T18:33:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729183328-688913f80804f.png"}],"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\/46181.html","url":"https:\/\/www.wsisp.com\/helps\/46181.html","name":"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T18:33:45+00:00","dateModified":"2025-07-29T18:33:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/46181.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/46181.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/46181.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u82e5\u4f9d\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668"}]},{"@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\/46181","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=46181"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46181\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/46164"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=46181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=46181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=46181"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=46181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}