{"id":23092,"date":"2025-04-19T06:56:42","date_gmt":"2025-04-18T22:56:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/23092.html"},"modified":"2025-04-19T06:56:42","modified_gmt":"2025-04-18T22:56:42","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e4%bd%bf%e7%94%a8docker%e9%83%a8%e7%bd%b2%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/23092.html","title":{"rendered":"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee"},"content":{"rendered":"<\/p>\n<h4>\u4f7f\u7528docker\u90e8\u7f72<\/h4>\n<ul>\n<li>\u6b65\u9aa4\u8bf4\u660e<\/li>\n<li>\n<ul>\n<li>1\u3001\u660e\u786e\u6240\u6709\u8981\u5b89\u88c5\u7684\u5185\u5bb9<\/li>\n<li>2\u3001\u51c6\u5907\u4e00\u53f0\u670d\u52a1\u5668\uff08\u6211\u7528\u7684\u662f\u963f\u91cc\u4e91\u7684\u670d\u52a1\u5668\uff09<\/li>\n<li>3\u3001\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f\uff1anginx.conf\uff0capplication.yml\uff0cvue.config.js\u4ee5\u53ca\u4ee3\u7801\u4e2d\u6709\u6d89\u53ca\u5230\u9759\u6001\u8d44\u6e90\u7684\u5730\u65b9\uff1a<\/li>\n<li>4\u3001\u68c0\u67e5\u7248\u672c\u53f7\uff0c\u8fc1\u79fb\u6570\u636e<\/li>\n<li>5\u3001\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u597ddocker\u5e76\u4e14\u719f\u6089docker\u547d\u4ee4(\u963f\u91cc\u4e91\u955c\u50cf\u6e90\uff1a<\/li>\n<li>6\u3001\u5c06\u9879\u76ee\u8d44\u6e90\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u5bf9\u5e94\u76ee\u5f55\uff08\u4f7f\u7528Xftp8\uff09<\/li>\n<li>7\u3001\u5b89\u88c5mysql\u548credis(\u6ce8\uff1aredis\u8981\u6301\u4e45\u5316\u9700\u8981\u914d\u7f6eredis.conf\u6587\u4ef6)<\/li>\n<li>8\u3001\u7f16\u8bd1Dockerfile\u6587\u4ef6\uff0c\u542f\u52a8\u9879\u76ee<\/li>\n<li>9\u3001\u5b89\u88c5\u5e76\u542f\u52a8nginx<\/li>\n<li>10\u3001\u901a\u8fc7ip:\u7aef\u53e3\u53f7\u8bbf\u95ee\u9879\u76ee\u7f51\u7ad9<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u6b65\u9aa4\u8bf4\u660e<\/h2>\n<h3>1\u3001\u660e\u786e\u6240\u6709\u8981\u5b89\u88c5\u7684\u5185\u5bb9<\/h3>\n<p> \u6211\u7684mysql\u7248\u672c\u4e3a8.0\uff0credis\u7248\u672c\u4e3a7.4.2\uff08\u8981\u5c06redis\u6570\u636e\u8fc1\u79fb\u7684\u7248\u672c\u53f7\u5fc5\u987b\u517c\u5bb9\uff0c\u4e0d\u7136dump.rdb\u65e0\u6cd5\u52a0\u8f7d\uff09\u3001jdk17\u548cnginx1.24.0<\/p>\n<h3>2\u3001\u51c6\u5907\u4e00\u53f0\u670d\u52a1\u5668\uff08\u6211\u7528\u7684\u662f\u963f\u91cc\u4e91\u7684\u670d\u52a1\u5668\uff09<\/h3>\n<h3>3\u3001\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f\uff1anginx.conf\uff0capplication.yml\uff0cvue.config.js\u4ee5\u53ca\u4ee3\u7801\u4e2d\u6709\u6d89\u53ca\u5230\u9759\u6001\u8d44\u6e90\u7684\u5730\u65b9\uff1a<\/h3>\n<p>\u89e3\u91ca\uff1a\u5c06localhost\u6539\u4e3a\u5bf9\u5e94\u5bb9\u5668\u540d\u6307\u7684\u662f\u7b49\u7b49\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u9700\u8981\u5c06\u5404\u4e2a\u5bb9\u5668\u653e\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u4e0b\uff0c\u5bb9\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u53ef\u901a\u8fc7\u5bb9\u5668\u540d\u8bbf\u95ee\uff08\u7c7b\u4f3c\u4e8e\u57df\u540d\u89e3\u6790\uff09<\/p>\n<p>\u4f7f\u7528maven\u547d\u4ee4clean-&gt;package\u6253\u5305target\u6587\u4ef6\u5939,\u751f\u6210.jar\u6587\u4ef6 \u5728\u524d\u7aef\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u4f7f\u7528npm run build\u547d\u4ee4\u6253\u5305dist\u6587\u4ef6\u5939<\/p>\n<p> Dockerfile:<\/p>\n<p># \u9009\u62e9 JDK 17 \u5b98\u65b9\u955c\u50cf\u4f5c\u4e3a\u57fa\u7840\u955c\u50cf<br \/>\nFROM openjdk:17-jdk-slim AS build<\/p>\n<p># \u56fe\u5f62\u9a8c\u8bc1\u7801\u9700\u8981\u989d\u5916\u5b89\u88c5\u5e93<br \/>\nRUN apt-get update &amp;&amp; apt-get install -y \\\\<br \/>\n    libfontconfig1 \\\\<br \/>\n    libx11-dev \\\\<br \/>\n    libxext6 \\\\<br \/>\n    libxrender1 \\\\<br \/>\n    libxtst6 \\\\<br \/>\n    xfonts-base \\\\<br \/>\n    xfonts-75dpi<\/p>\n<p># \u8bbe\u7f6e\u5de5\u4f5c\u76ee\u5f55<br \/>\nWORKDIR \/app<\/p>\n<p># \u5c06\u9879\u76ee\u7684 jar \u6587\u4ef6\u590d\u5236\u5230\u5bb9\u5668\u4e2d\u7684 \/app \u76ee\u5f55\uff08\u524d\u9762\u76ee\u5f55\u8868\u793a\u670d\u52a1\u5668\u76ee\u5f55\uff0c\u540e\u9762\u7684\u76ee\u5f55\u8868\u793a\u5bb9\u5668\u4e2d\u5bf9\u5e94\u7684\u76ee\u5f55\uff09<br \/>\nCOPY springboot_game-0.0.1-SNAPSHOT.jar \/app\/springboot_game-0.0.1-SNAPSHOT.jar<\/p>\n<p># \u66b4\u9732\u5e94\u7528\u8fd0\u884c\u7684\u7aef\u53e3<br \/>\nEXPOSE 8080<\/p>\n<p># \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\nENV SPRING_PROFILES_ACTIVE=prod<\/p>\n<p># \u542f\u52a8 Spring Boot \u5e94\u7528<br \/>\nENTRYPOINT [\\&#8221;java\\&#8221;, \\&#8221;-jar\\&#8221;, \\&#8221;\/app\/springboot_game-0.0.1-SNAPSHOT.jar\\&#8221;]<\/p>\n<p> nginx.conf:<\/p>\n<p>#user  nobody;<br \/>\nworker_processes  1;<\/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>    sendfile        on;<br \/>\n    #tcp_nopush     on;<\/p>\n<p>    #keepalive_timeout  0;<br \/>\n    keepalive_timeout  65;<\/p>\n<p># Nginx\u8bf7\u6c42\u4f53\u6700\u5927\u5927\u5c0f<br \/>\n    # 413 Request Entity Too Large<br \/>\n    # \u9ed8\u8ba4\u662f1M\u5927\u5c0f<br \/>\n    client_max_body_size 40m;<\/p>\n<p>    server {<br \/>\n        listen       8090;<br \/>\n        server_name  game; #\u5bf9\u5e94\u9879\u76ee\u7684\u5bb9\u5668\u540d<\/p>\n<p>        #charset koi8-r;<\/p>\n<p>        #access_log  logs\/host.access.log  main;<\/p>\n<p>        location \/ {<br \/>\n            root   \/usr\/share\/nginx\/html;  #\u5bf9\u5e94nginx\u5bb9\u5668\u4e2dhtml\u7684\u5177\u4f53\u5b58\u653e\u4f4d\u7f6e(\u6b64\u4f4d\u7f6e\u4e3a\u7cfb\u7edf\u9ed8\u8ba4\u4f4d\u7f6e)<br \/>\n            index  index.html index.htm;<br \/>\n            #\u89e3\u51b3history\u6a21\u5f0f\u4e0b\u5237\u65b0404\u7684\u95ee\u9898<br \/>\n            try_files $uri $uri\/ \/index.html;<br \/>\n        }<br \/>\n        location ^~ \/api\/ {<br \/>\nrewrite ^\/api\/(.*)$ \/$1 break;<br \/>\nproxy_pass http:\/\/game:8080; #\u89e3\u6790\u8def\u5f84\u5c06localhost\u6539\u6210\u5bf9\u5e94\u5bb9\u5668\u540d<br \/>\n        }<\/p>\n<p>        error_page   500 502 503 504  \/50x.html;<br \/>\n        location = \/50x.html {<br \/>\n            root   html;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p> application.yml:<\/p>\n<p><span class=\"token key atrule\">spring<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">8080<\/span><br \/>\n  <span class=\"token key atrule\">address<\/span><span class=\"token punctuation\">:<\/span> 0.0.0.0 <span class=\"token comment\">#\u8868\u793a\u5141\u8bb8\u6240\u6709ip\u8bbf\u95ee<\/span><br \/>\n  <span class=\"token key atrule\">data<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">redis<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">host<\/span><span class=\"token punctuation\">:<\/span> redis <span class=\"token comment\">#\u5bf9\u5e94redis\u7684\u5bb9\u5668\u540d<\/span><br \/>\n      <span class=\"token key atrule\">database<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5<\/span> <span class=\"token comment\">#redis\u6240\u4f7f\u7528\u7684\u6570\u636e\u5e93<\/span><br \/>\n      <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">123456<\/span> <span class=\"token comment\">#\u5bf9\u5e94\u7b49\u7b49\u5bb9\u5668\u521b\u5efa\u7684\u65f6\u5019\u4f60\u81ea\u5df1\u8bbe\u7f6e\u7684\u5bc6\u7801<\/span><br \/>\n  <span class=\"token key atrule\">jpa<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">hibernate<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">ddl-auto<\/span><span class=\"token punctuation\">:<\/span> none<br \/>\n  <span class=\"token key atrule\">datasource<\/span><span class=\"token punctuation\">:<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf32\u6b21\u3002\u6211\u7684mysql\u7248\u672c\u4e3a8.0\uff0credis\u7248\u672c\u4e3a7.4.2\uff08\u8981\u5c06redis\u6570\u636e\u8fc1\u79fb\u7684\u7248\u672c\u53f7\u5fc5\u987b\u517c\u5bb9\uff0c\u4e0d\u7136dump.rdb\u65e0\u6cd5\u52a0\u8f7d\uff09\u3001jdk17\u548cnginx1.24.0\u3002\uff1a\u5c06localhost\u6539\u4e3a\u5bf9\u5e94\u5bb9\u5668\u540d\u6307\u7684\u662f\u7b49\u7b49\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u9700\u8981\u5c06\u5404\u4e2a\u5bb9\u5668\u653e\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u4e0b\uff0c\u5bb9\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u53ef\u901a\u8fc7\u5bb9\u5668\u540d\u8bbf\u95ee\uff08\u7c7b\u4f3c\u4e8e\u57df\u540d\u89e3\u6790\uff09\u786e\u8ba4\u7248\u672c\u53f7\u4e4b\u540e\u5c06sql\u6587\u4ef6\u5bfc\u51fa\uff08\u5982\u679credis\u4e5f\u8981\u6570\u636e\u8fc1\u79fb\u7684\u8bdd\u9700\u8981dump.rdb\u6587\u4ef6\uff0c\u4f4d\u7f6e\u9700\u8981\u81ea\u5df1\u53bb\u627e\uff09\uff08\u7528\u4e8edocker\u7684\u76ee\u5f55\u6302\u8f7d\uff1a\u5c06\u5bb9\u5668\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\uff09\uff08\u5bf9\u5e94\u81ea\u5df1\u7684jar\u6587\u4ef6\u540d\uff09_\u670d\u52a1\u5668\u7528docker\u90e8\u7f72<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,98,625,121,43,44],"topic":[],"class_list":["post-23092","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-spring-boot","tag-vue-js","tag-121","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>\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \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\/23092.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf32\u6b21\u3002\u6211\u7684mysql\u7248\u672c\u4e3a8.0\uff0credis\u7248\u672c\u4e3a7.4.2\uff08\u8981\u5c06redis\u6570\u636e\u8fc1\u79fb\u7684\u7248\u672c\u53f7\u5fc5\u987b\u517c\u5bb9\uff0c\u4e0d\u7136dump.rdb\u65e0\u6cd5\u52a0\u8f7d\uff09\u3001jdk17\u548cnginx1.24.0\u3002\uff1a\u5c06localhost\u6539\u4e3a\u5bf9\u5e94\u5bb9\u5668\u540d\u6307\u7684\u662f\u7b49\u7b49\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u9700\u8981\u5c06\u5404\u4e2a\u5bb9\u5668\u653e\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u4e0b\uff0c\u5bb9\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u53ef\u901a\u8fc7\u5bb9\u5668\u540d\u8bbf\u95ee\uff08\u7c7b\u4f3c\u4e8e\u57df\u540d\u89e3\u6790\uff09\u786e\u8ba4\u7248\u672c\u53f7\u4e4b\u540e\u5c06sql\u6587\u4ef6\u5bfc\u51fa\uff08\u5982\u679credis\u4e5f\u8981\u6570\u636e\u8fc1\u79fb\u7684\u8bdd\u9700\u8981dump.rdb\u6587\u4ef6\uff0c\u4f4d\u7f6e\u9700\u8981\u81ea\u5df1\u53bb\u627e\uff09\uff08\u7528\u4e8edocker\u7684\u76ee\u5f55\u6302\u8f7d\uff1a\u5c06\u5bb9\u5668\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\uff09\uff08\u5bf9\u5e94\u81ea\u5df1\u7684jar\u6587\u4ef6\u540d\uff09_\u670d\u52a1\u5668\u7528docker\u90e8\u7f72\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/23092.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-18T22:56:42+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23092.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/23092.html\",\"name\":\"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T22:56:42+00:00\",\"dateModified\":\"2025-04-18T22:56:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/23092.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/23092.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23092.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee\"}]},{\"@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":"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \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\/23092.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb861\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf32\u6b21\u3002\u6211\u7684mysql\u7248\u672c\u4e3a8.0\uff0credis\u7248\u672c\u4e3a7.4.2\uff08\u8981\u5c06redis\u6570\u636e\u8fc1\u79fb\u7684\u7248\u672c\u53f7\u5fc5\u987b\u517c\u5bb9\uff0c\u4e0d\u7136dump.rdb\u65e0\u6cd5\u52a0\u8f7d\uff09\u3001jdk17\u548cnginx1.24.0\u3002\uff1a\u5c06localhost\u6539\u4e3a\u5bf9\u5e94\u5bb9\u5668\u540d\u6307\u7684\u662f\u7b49\u7b49\u521b\u5efa\u5bb9\u5668\u7684\u65f6\u5019\u9700\u8981\u5c06\u5404\u4e2a\u5bb9\u5668\u653e\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u4e0b\uff0c\u5bb9\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u53ef\u901a\u8fc7\u5bb9\u5668\u540d\u8bbf\u95ee\uff08\u7c7b\u4f3c\u4e8e\u57df\u540d\u89e3\u6790\uff09\u786e\u8ba4\u7248\u672c\u53f7\u4e4b\u540e\u5c06sql\u6587\u4ef6\u5bfc\u51fa\uff08\u5982\u679credis\u4e5f\u8981\u6570\u636e\u8fc1\u79fb\u7684\u8bdd\u9700\u8981dump.rdb\u6587\u4ef6\uff0c\u4f4d\u7f6e\u9700\u8981\u81ea\u5df1\u53bb\u627e\uff09\uff08\u7528\u4e8edocker\u7684\u76ee\u5f55\u6302\u8f7d\uff1a\u5c06\u5bb9\u5668\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e2d\u7684\u5bf9\u5e94\u76ee\u5f55\uff09\uff08\u5bf9\u5e94\u81ea\u5df1\u7684jar\u6587\u4ef6\u540d\uff09_\u670d\u52a1\u5668\u7528docker\u90e8\u7f72","og_url":"https:\/\/www.wsisp.com\/helps\/23092.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T22:56:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/23092.html","url":"https:\/\/www.wsisp.com\/helps\/23092.html","name":"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T22:56:42+00:00","dateModified":"2025-04-18T22:56:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/23092.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/23092.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/23092.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u4e0a\u4f7f\u7528docker\u90e8\u7f72\u9879\u76ee"}]},{"@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\/23092","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=23092"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23092\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=23092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=23092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=23092"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=23092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}