{"id":89433,"date":"2026-08-03T01:16:34","date_gmt":"2026-08-02T17:16:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89433.html"},"modified":"2026-08-03T01:16:34","modified_gmt":"2026-08-02T17:16:34","slug":"%e5%89%8d%e5%90%8e%e7%ab%af%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89433.html","title":{"rendered":"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72"},"content":{"rendered":"<h2>\u4e00\u3001\u6982\u8ff0<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"333\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802171633-6a6f7b710a8ed.png\" width=\"999\" \/><\/p>\n<p>\u524d\u7aef\u6253\u5305\u4f7f\u7528\u7684\u662f\u751f\u4ea7\u73af\u5883&#xff0c;\u4fee\u6539\u4ee3\u7406\u524d\u7f00\u548c\u540e\u7aef\u63a5\u53e3\u3001\u524d\u7aef\u7aef\u53e3\u3002<\/p>\n<p>\u540e\u7aef\u6253\u5305\u6210jar\u5305&#xff0c;\u4fee\u6539redis\u3001mysql\u914d\u7f6e\u3002<\/p>\n<p>\u4e91\u670d\u52a1\u5668\u4e0a\u7684mysql\u3001redis\u3001nginx\u5b9e\u4f8b\u521b\u5efa\u5728dockers\u5bb9\u5668\u4e2d&#xff0c;\u501f\u52a9dockers\u4fdd\u8bc1\u5404\u4e2a\u73af\u5883\u4e0d\u53d7\u5e72\u6270\u3002<\/p>\n<h2>\u4e8c\u3001\u524d\u7aef\u90e8\u7f72<\/h2>\n<h3>1.\u6253\u5305<\/h3>\n<p>\u9879\u76ee\u6253\u5f00\u540e&#xff0c;\u67e5\u770bREADME.md\u67e5\u770b\u547d\u4ee4&#xff0c;<\/p>\n<p>\u4e3e\u4f8b&#xff1a;npm install\u5b89\u88c5\u4f9d\u8d56&#xff0c;npm run dev\u5f00\u53d1\u73af\u5883\u672c\u5730\u8fd0\u884c\u6d4b\u8bd5&#xff0c;npm run build\u751f\u4ea7\u73af\u5883\u6253\u5305\u3002<\/p>\n<p>#\u5f00\u53d1\u73af\u5883  .env.development<br \/>\n# \u5e94\u7528\u7aef\u53e3<br \/>\nVITE_APP_PORT&#061;9208<\/p>\n<p># \u4ee3\u7406\u524d\u7f00<br \/>\nVITE_APP_BASE_API&#061;\/dev-api<\/p>\n<p># \u63a5\u53e3\u5730\u5740  \u672c\u5730\u6d4b\u8bd5<br \/>\nVITE_APP_API_URL&#061;&#034;http:\/\/localhost:17000&#034; <\/p>\n<p># WebSocket \u7aef\u70b9&#xff08;\u4e0d\u914d\u7f6e\u5219\u5173\u95ed&#xff09;&#xff0c;\u7ebf\u4e0a ws:\/\/api.youlai.tech\/ws &#xff0c;\u672c\u5730 ws:\/\/localhost:8989\/ws<br \/>\nVITE_APP_WS_ENDPOINT&#061;<\/p>\n<p># \u542f\u7528 Mock \u670d\u52a1<br \/>\nVITE_MOCK_DEV_SERVER&#061;false<\/p>\n<p>#\u751f\u4ea7\u73af\u5883  .env.production<br \/>\n# \u5e94\u7528\u7aef\u53e3<br \/>\nVITE_APP_PORT&#061;9208<\/p>\n<p># \u4ee3\u7406\u524d\u7f00<br \/>\nVITE_APP_BASE_API&#061;\/api<\/p>\n<p># \u63a5\u53e3\u5730\u5740  \u8fde\u63a5\u670d\u52a1\u5668\u5730\u5740<br \/>\nVITE_APP_API_URL &#061; &#034;http:\/\/\u670d\u52a1\u5668\u5730\u5740:17000&#034;<\/p>\n<p># WebSocket \u7aef\u70b9&#xff08;\u4e0d\u914d\u7f6e\u5219\u5173\u95ed&#xff09;&#xff0c;\u7ebf\u4e0a ws:\/\/api.youlai.tech\/ws &#xff0c;\u672c\u5730 ws:\/\/localhost:8989\/ws<br \/>\nVITE_APP_WS_ENDPOINT&#061;<\/p>\n<p># \u542f\u7528 Mock \u670d\u52a1<br \/>\nVITE_MOCK_DEV_SERVER&#061;false<\/p>\n<h3>2.nginx\u914d\u7f6e<\/h3>\n<p>\u5c06\u524d\u7aef\u6253\u5305dist\u6587\u4ef6\u5939\u653e\u5728\u6839\u76ee\u5f55\u4e0b&#xff0c;dist\u6587\u4ef6\u662f\u89e3\u538b\u72b6\u6001\u3002<\/p>\n<p># 1.\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<br \/>\nmkdir -p \/opt\/project_name\/conf.d<br \/>\ncat &gt; \/opt\/project_name\/conf\/default.conf &lt;&lt; &#039;EOF&#039;<br \/>\nserver {<br \/>\n    listen 17000;<br \/>\n    server_name \u670d\u52a1\u5668\u5730\u5740;<\/p>\n<p>    location \/ {<br \/>\n        root \/usr\/share\/nginx\/html;<br \/>\n        index index.html index.htm;<br \/>\n        try_files $uri $uri\/ \/index.html;<\/p>\n<p>        location ~* \\\\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {<br \/>\n            expires 1y;<br \/>\n            add_header Cache-Control &#034;public, immutable&#034;;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    location \/api\/ {<br \/>\n        proxy_pass http:\/\/\u670d\u52a1\u5668\u5730\u5740:17001;<br \/>\n        proxy_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 \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<\/p>\n<p>        proxy_connect_timeout 30s;<br \/>\n        proxy_send_timeout 30s;<br \/>\n        proxy_read_timeout 30s;<br \/>\n    }<\/p>\n<p>    location \/health {<br \/>\n        access_log off;<br \/>\n        return 200 &#034;zbgl-new-healthy\\\\n&#034;;<br \/>\n        add_header Content-Type text\/plain;<br \/>\n    }<br \/>\n}<br \/>\nEOF<\/p>\n<p># 2.\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u521b\u5efa\u6210\u529f<br \/>\nls -la \/opt\/project_name\/conf\/default.conf<\/p>\n<p># 3.\u67e5\u770b\u6587\u4ef6\u5185\u5bb9<br \/>\ncat \/opt\/project_name\/conf\/default.conf<\/p>\n<p># 4.\u5982\u679c\u6709\u95ee\u9898&#xff0c;\u5220\u9664\u6709\u95ee\u9898\u7684\u76ee\u5f55\/\u6587\u4ef6<br \/>\nrm -rf \/opt\/project_name\/conf\/default.conf<\/p>\n<p># 5.\u521b\u5efa\u914d\u7f6e\u76ee\u5f55<br \/>\nmkdir -p \/opt\/project_name\/conf.d<\/p>\n<p># 6.\u590d\u5236\u914d\u7f6e\u6587\u4ef6\u5230\u76ee\u5f55<br \/>\ncp \/opt\/project_name\/conf\/default.conf \/opt\/project_name\/conf.d\/<\/p>\n<p># 7.\u5982\u679c\u6709&#xff0c;\u5220\u9664\u4e4b\u524d\u7684\u5bb9\u5668<br \/>\ndocker rm -f zbgl-new-nginx 2&gt;\/dev\/null<\/p>\n<p># 8.\u4f7f\u7528\u76ee\u5f55\u6302\u8f7d\u542f\u52a8\u5bb9\u5668    \u8fd9\u91cc\u7684-p\u53ef\u4ee5\u7406\u89e3\u4e3a\u524d\u7aef:\u540e\u7aef<br \/>\ndocker run -d \\\\<br \/>\n  &#8211;name zbgl-new-nginx \\\\<br \/>\n  &#8211;restart unless-stopped \\\\<br \/>\n  -p 9208:17000 \\\\<br \/>\n  -v \/root\/dist_zbgl:\/usr\/share\/nginx\/html \\\\<br \/>\n  -v \/opt\/project_name\/conf.d:\/etc\/nginx\/conf.d \\\\<br \/>\n  -v \/opt\/project_name\/logs:\/var\/log\/nginx \\\\<br \/>\n  nginx:alpine<\/p>\n<p># \u603b\u7ed3&#xff1a;<br \/>\n# \u65e5\u5e38\u7ba1\u7406\u547d\u4ee4<br \/>\ndocker restart zbgl-new-nginx                    # \u91cd\u542f\u5bb9\u5668<br \/>\ndocker logs -f zbgl-new-nginx                   # \u67e5\u770b\u5b9e\u65f6\u65e5\u5fd7<br \/>\ndocker exec zbgl-new-nginx nginx -s reload      # \u91cd\u8f7d\u914d\u7f6e&#xff08;\u4e0d\u91cd\u542f&#xff09;<\/p>\n<p># \u66f4\u65b0\u524d\u7aef\u6587\u4ef6&#xff08;\u5b9e\u65f6\u751f\u6548&#xff0c;\u65e0\u9700\u91cd\u542f&#xff09;<br \/>\n# \u76f4\u63a5\u66f4\u65b0 \/root\/dist\/ \u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5373\u53ef<\/p>\n<p># \u66f4\u65b0\u914d\u7f6e<br \/>\nvi \/opt\/project_name\/conf.d\/default.conf<br \/>\ndocker exec zbgl-new-nginx nginx -t<br \/>\ndocker exec zbgl-new-nginx nginx -s reload   #\u91cd\u65b0\u52a0\u8f7dnginx<\/p>\n<p># \u5728\u670d\u52a1\u5668\u672c\u5730\u5b8c\u6574\u6d4b\u8bd5<br \/>\necho &#034;\u524d\u7aef\u8bbf\u95ee\u5730\u5740: http:\/\/\u670d\u52a1\u5668\u5730\u5740:17000\/&#034;<\/p>\n<p># \u4f7f\u7528curl\u8be6\u7ec6\u6d4b\u8bd5 \u663e\u793a200\u5c31\u6210\u529f\u4e86<br \/>\ncurl -v http:\/\/localhost:17000\/<\/p>\n<p># \u6216\u8005\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee<br \/>\n# http:\/\/\u670d\u52a1\u5668\u5730\u5740:17000\/<\/p>\n<h2>\u4e09\u3001\u540e\u7aef\u90e8\u7f72<\/h2>\n<p>\u672c\u5730\u540e\u7aefredis\u3001mysql\u6d4b\u8bd5\u6210\u529f\u540e&#xff0c;\u518d\u4e0a\u4f20jar\u5305\u5230\u670d\u52a1\u5668&#xff0c;\u672c\u5730\u8fd0\u884credis\u548cmysql\u7684\u6307\u4ee4\u5982\u4e0b:<\/p>\n<p>\u5207\u6362\u5230Redis\u76ee\u5f55\u4e0b&#xff0c;\u8fd0\u884credis-server redis.windows.conf<br \/>\n\u8fd0\u884ccmd&#xff0c;\u547d\u4ee4&#xff1a;net start mysql<\/p>\n<h3>\u9879\u76ee\u6253\u5305\u90e8\u7f72<\/h3>\n<p>clear\u3001compile\u3001package\u6253\u597d\u5305\u540e&#xff0c;jar\u5305\u5728resources\u7684\u6587\u4ef6\u5939\u91cc<\/p>\n<p>\u4f7f\u7528\u4f20\u8f93\u8f6f\u4ef6winscp\u6216Xftp\u5c06\u6587\u4ef6\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u2460redis\u548cmysql\u6b63\u5e38\u8fd0\u884c&#xff0c;\u540e\u7aef\u8fd0\u884c\u7aef\u53e3\u6ca1\u6709\u548c\u5176\u4ed6\u7a0b\u5e8f\u7aef\u53e3\u8d77\u51b2\u7a81\u3002 \u2461\u5982\u679cdocker\u5bb9\u5668\u4e2dredis\u6b63\u5e38\u8fd0\u884c&#xff0c;\u800c\u4e14\u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e0a&#xff0c;\u90a3\u4e48\u5c31\u4e0d\u7528\u5728\u5bbf\u4e3b\u673a\u4e0a\u5b89\u88c5redis\u4e86\u3002 \u2462\u5728\u540e\u7aef\u914d\u7f6e\u6587\u4ef6application.yml\u4e2dactive\u4e2d\u7684\u6587\u4ef6&#xff0c;\u4f8b\u5982application-prod.yml\u6587\u4ef6\u4e2d\u5199\u7684redis\u8fde\u7684\u4e3b\u673a\u5e94\u8be5\u662f127.0.0.1&#xff0c;\u800c\u4e14\u4e00\u822c\u60c5\u51b5\u90fd\u662f6379\u7aef\u53e3&#xff0c;\u5bc6\u7801\u662f123456\u3002 \u2463\u5982\u679c\u76f4\u63a5\u4f7f\u7528java -jar strategy-boot.jar\u547d\u4ee4&#xff0c;\u6309ctrl&#043;c\u4f1a\u76f4\u63a5\u505c\u6389\u540e\u7aef\u7a0b\u5e8f&#xff0c;\u5fc5\u987b\u8ba9\u5176\u5728\u540e\u53f0\u8fd0\u884c\u3002<\/p>\n<p>#Xshell\u8fde\u63a5\u6210\u529f\u670d\u52a1\u5668\u540e&#xff0c;\u90e8\u7f72\u540e\u7aef\u8fc7\u7a0b&#xff1a;<br \/>\n[root&#064;xyycszh111 ~]netstat -tlnp | grep 17000   #\u68c0\u67e5\u540e\u7aef\u7aef\u53e3\u662f\u5426\u88ab\u5360\u7528<br \/>\ntcp6       0      0 :::17000                :::*                    LISTEN      99103\/java <\/p>\n<p>[root&#064;xyycszh111 ~]ps aux | grep 99103     # \u67e5\u770b\u662f\u54ea\u4e2aJava\u7a0b\u5e8f<\/p>\n<p>[root&#064;xyycszh111 ~]kill -9 99103 # \u505c\u6b62\u8fd9\u4e2a\u8fdb\u7a0b<\/p>\n<p>[root&#064;xyycszh111 ~]sleep 2   # \u7b49\u5f852\u79d2<\/p>\n<p>[root&#064;xyycszh111 ~]netstat -tlnp | grep 17000  # \u518d\u6b21\u68c0\u67e5\u7aef\u53e3\u662f\u5426\u91ca\u653e<\/p>\n<p>[root&#064;xyycszh111 ~]nohup java -jar strategy-boot.jar &gt; strategy-boot.log 2&gt;&amp;1 &amp;<br \/>\n#\u8f93\u51fa\u663e\u793a&#xff1a; [1] 13523        \u8868\u660e\u5df2\u7ecf\u5728\u540e\u53f0\u6210\u529f\u8fd0\u884c<\/p>\n<p>[root&#064;xyycszh111 ~]ps aux | grep youlai-boot.jar   #\u67e5\u770b\u540e\u7aefjar\u5305\u662f\u5426\u8fd0\u884c<br \/>\n#\u8f93\u51fa\u663e\u793a&#xff1a;root      13523  394  4.7 9098716 575584 pts\/0  Sl   21:11   0:43 java -jar strategy-boot.jar<br \/>\n#\u8f93\u51fa\u663e\u793a&#xff1a;root      13639  0.0  0.0 112820   964 pts\/0    S&#043;   21:11   0:00 grep &#8211;color&#061;auto strategy-boot.jar<br \/>\n#\u4e0a\u8ff0\u8f93\u51fa\u8bf4\u660e\u540e\u7aef\u6210\u529f\u8fd0\u884c<\/p>\n<p>[root&#064;xyycszh111 ~]tail -f strategy-boot.log    #\u8f93\u51fa\u540e\u7aef\u8fd0\u884c\u65e5\u5fd7\u5230strategy-boot.log\u6587\u4ef6\u4e2d<br \/>\n#\u8f93\u51fa\u65e5\u5fd7\u7c7b\u4f3c\u4e0b\u9762\u5185\u5bb9&#xff0c;\u8bf4\u660e\u540e\u7aef\u8fd0\u884c\u6210\u529f<br \/>\n2025-12-01T21:11:24.622&#043;08:00  WARN 13523 &#8212; [strategy-boot] [           main] o.s.s.c.a.web.builders.WebSecurity       : You are asking Spring Security to ignore Deferred [Mvc [pattern&#061;&#039;\/swagger-ui\/**&#039;], Ant [pattern&#061;&#039;\/swagger-ui\/**&#039;]]. This is not recommended &#8212; please use permitAll via HttpSecurity#authorizeHttpRequests instead.<br \/>\n2025-12-01T21:11:24.622&#043;08:00  WARN 13523 &#8212; [strategy-boot] [           main] o.s.s.c.a.web.builders.WebSecurity       : You are asking Spring Security to ignore Deferred [Mvc [pattern&#061;&#039;\/swagger-ui.html&#039;], Ant [pattern&#061;&#039;\/swagger-ui.html&#039;]]. This is not recommended &#8212; please use permitAll via HttpSecurity#authorizeHttpRequests instead.<br \/>\n2025-12-01T21:11:24.622&#043;08:00  WARN 13523 &#8212; [strategy-boot] [           main] o.s.s.c.a.web.builders.WebSecurity       : You are asking Spring Security to ignore Deferred [Mvc [pattern&#061;&#039;\/api\/v1\/auth\/captcha&#039;], Ant [pattern&#061;&#039;\/api\/v1\/auth\/captcha&#039;]]. This is not recommended &#8212; please use permitAll via HttpSecurity#authorizeHttpRequests instead.<br \/>\n2025-12-01T21:11:24.622&#043;08:00  WARN 13523 &#8212; [strategy-boot] [           main] o.s.s.c.a.web.builders.WebSecurity       : You are asking Spring Security to ignore Deferred [Mvc [pattern&#061;&#039;\/api\/v1\/auth\/refresh-token&#039;], Ant [pattern&#061;&#039;\/api\/v1\/auth\/refresh-token&#039;]]. This is not recommended &#8212; please use permitAll via HttpSecurity#authorizeHttpRequests instead.<br \/>\n2025-12-01T21:11:24.622&#043;08:00  WARN 13523 &#8212; [strategy-boot] [           main] o.s.s.c.a.web.builders.WebSecurity       : You are asking Spring Security to ignore Deferred [Mvc [pattern&#061;&#039;\/ws\/**&#039;], Ant [pattern&#061;&#039;\/ws\/**&#039;]]. This is not recommended &#8212; please use permitAll via HttpSecurity#authorizeHttpRequests instead.<br \/>\n2025-12-01T21:11:25.558&#043;08:00  INFO 13523 &#8212; [strategy-boot] [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port 17000 (http) with context path &#039;\/&#039;<br \/>\n2025-12-01T21:11:25.560&#043;08:00  INFO 13523 &#8212; [strategy-boot] [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Starting&#8230;<br \/>\n2025-12-01T21:11:25.561&#043;08:00  INFO 13523 &#8212; [strategy-boot] [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : BrokerAvailabilityEvent[available&#061;true, SimpleBrokerMessageHandler [org.springframework.messaging.simp.broker.DefaultSubscriptionRegistry&#064;a9b5c85]]<br \/>\n2025-12-01T21:11:25.561&#043;08:00  INFO 13523 &#8212; [strategy-boot] [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Started.<br \/>\n2025-12-01T21:11:25.582&#043;08:00  INFO 13523 &#8212; [strategy-boot] [           main] com.youlai.boot.YouLaiBootApplication    : Started StrategyBootApplication in 10.186 seconds (process running for 10.794)<\/p>\n<p>\u6709\u4ec0\u4e48\u95ee\u9898&#xff0c;\u6b22\u8fce\u5404\u4f4d\u6279\u8bc4\u6307\u6b63&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6982\u8ff0\u524d\u7aef\u6253\u5305\u4f7f\u7528\u7684\u662f\u751f\u4ea7\u73af\u5883&#xff0c;\u4fee\u6539\u4ee3\u7406\u524d\u7f00\u548c\u540e\u7aef\u63a5\u53e3\u3001\u524d\u7aef\u7aef\u53e3\u3002\u540e\u7aef\u6253\u5305\u6210jar\u5305&#xff0c;\u4fee\u6539redis\u3001mysql\u914d\u7f6e\u3002\u4e91\u670d\u52a1\u5668\u4e0a\u7684mysql\u3001redis\u3001nginx\u5b9e\u4f8b\u521b\u5efa\u5728dockers\u5bb9\u5668\u4e2d&#xff0c;\u501f\u52a9dockers\u4fdd\u8bc1\u5404\u4e2a\u73af\u5883\u4e0d\u53d7\u5e72\u6270\u3002\u4e8c\u3001\u524d\u7aef\u90e8\u7f721.\u6253\u5305\u9879\u76ee\u6253\u5f00\u540e&#xff0c;\u67e5\u770bREADME.md\u67e5\u770b\u547d\u4ee4&#xff0c;\u4e3e\u4f8b&#xff1a;npm install\u5b89\u88c5\u4f9d\u8d56&#xff0c;npm run dev\u5f00\u53d1\u73af\u5883\u672c\u5730\u8fd0\u884c\u6d4b\u8bd5<\/p>\n","protected":false},"author":2,"featured_media":89432,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[87,292,43,44],"topic":[],"class_list":["post-89433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-87","tag-292","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \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\/89433.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u6982\u8ff0\u524d\u7aef\u6253\u5305\u4f7f\u7528\u7684\u662f\u751f\u4ea7\u73af\u5883&#xff0c;\u4fee\u6539\u4ee3\u7406\u524d\u7f00\u548c\u540e\u7aef\u63a5\u53e3\u3001\u524d\u7aef\u7aef\u53e3\u3002\u540e\u7aef\u6253\u5305\u6210jar\u5305&#xff0c;\u4fee\u6539redis\u3001mysql\u914d\u7f6e\u3002\u4e91\u670d\u52a1\u5668\u4e0a\u7684mysql\u3001redis\u3001nginx\u5b9e\u4f8b\u521b\u5efa\u5728dockers\u5bb9\u5668\u4e2d&#xff0c;\u501f\u52a9dockers\u4fdd\u8bc1\u5404\u4e2a\u73af\u5883\u4e0d\u53d7\u5e72\u6270\u3002\u4e8c\u3001\u524d\u7aef\u90e8\u7f721.\u6253\u5305\u9879\u76ee\u6253\u5f00\u540e&#xff0c;\u67e5\u770bREADME.md\u67e5\u770b\u547d\u4ee4&#xff0c;\u4e3e\u4f8b&#xff1a;npm install\u5b89\u88c5\u4f9d\u8d56&#xff0c;npm run dev\u5f00\u53d1\u73af\u5883\u672c\u5730\u8fd0\u884c\u6d4b\u8bd5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89433.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T17:16:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802171633-6a6f7b710a8ed.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=\"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\/89433.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89433.html\",\"name\":\"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T17:16:34+00:00\",\"dateModified\":\"2026-08-02T17:16:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89433.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89433.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89433.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72\"}]},{\"@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":"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \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\/89433.html","og_locale":"zh_CN","og_type":"article","og_title":"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u6982\u8ff0\u524d\u7aef\u6253\u5305\u4f7f\u7528\u7684\u662f\u751f\u4ea7\u73af\u5883&#xff0c;\u4fee\u6539\u4ee3\u7406\u524d\u7f00\u548c\u540e\u7aef\u63a5\u53e3\u3001\u524d\u7aef\u7aef\u53e3\u3002\u540e\u7aef\u6253\u5305\u6210jar\u5305&#xff0c;\u4fee\u6539redis\u3001mysql\u914d\u7f6e\u3002\u4e91\u670d\u52a1\u5668\u4e0a\u7684mysql\u3001redis\u3001nginx\u5b9e\u4f8b\u521b\u5efa\u5728dockers\u5bb9\u5668\u4e2d&#xff0c;\u501f\u52a9dockers\u4fdd\u8bc1\u5404\u4e2a\u73af\u5883\u4e0d\u53d7\u5e72\u6270\u3002\u4e8c\u3001\u524d\u7aef\u90e8\u7f721.\u6253\u5305\u9879\u76ee\u6253\u5f00\u540e&#xff0c;\u67e5\u770bREADME.md\u67e5\u770b\u547d\u4ee4&#xff0c;\u4e3e\u4f8b&#xff1a;npm install\u5b89\u88c5\u4f9d\u8d56&#xff0c;npm run dev\u5f00\u53d1\u73af\u5883\u672c\u5730\u8fd0\u884c\u6d4b\u8bd5","og_url":"https:\/\/www.wsisp.com\/helps\/89433.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T17:16:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802171633-6a6f7b710a8ed.png"}],"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\/89433.html","url":"https:\/\/www.wsisp.com\/helps\/89433.html","name":"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T17:16:34+00:00","dateModified":"2026-08-02T17:16:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89433.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89433.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89433.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u524d\u540e\u7aef\u5728\u670d\u52a1\u5668\u7684\u90e8\u7f72"}]},{"@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\/89433","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=89433"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89433\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89432"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89433"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}