{"id":34586,"date":"2025-04-30T07:00:45","date_gmt":"2025-04-29T23:00:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/34586.html"},"modified":"2025-04-30T07:00:45","modified_gmt":"2025-04-29T23:00:45","slug":"%e5%9c%a8ubuntu%e4%b8%ad%e6%90%ad%e5%bb%baspringboot%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%92%8cvite-vue%e5%89%8d%e7%ab%af3-vitevue","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/34586.html","title":{"rendered":"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue"},"content":{"rendered":"<\/p>\n<h4>Vite&#043;Vue<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u7cfb\u7edf\u548c\u73af\u5883<\/li>\n<li>\n<ul>\n<li>\u521b\u5efaVite-Vue\u5de5\u7a0b<\/li>\n<li>\u8fd0\u884cVite-Vue<\/li>\n<li>\n<ul>\n<li>Windows\u672c\u5730\u8fd0\u884c<\/li>\n<li>\u670d\u52a1\u5668\u7aef\u8fd0\u884c-Nginx\u4ee3\u7406**<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u5c0f\u7ed3<\/li>\n<\/ul>\n<h2>\u524d\u8a00<\/h2>\n<p>\u6839\u636e\u6211\u7684\u7ecf\u9a8c&#xff0c;\u5728\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e9b\u5efa\u8bae\u4ec5\u4f9b\u53c2\u8003&#xff1a;<\/p>\n<ul>\n<li>Spring Boot\u548cVite-vue\u7684\u4ee3\u7801\u53ef\u4ee5\u4e0d\u653e\u5728\u670d\u52a1\u5668\u4e0a\u7f16\u5199&#xff0c;\u53ef\u4ee5\u5728Windows\u4e0b\u5f00\u53d1\u6d4b\u8bd5&#xff0c;\u5b8c\u6210\u7684\u529f\u80fd\u53ef\u4ee5\u6253\u5305\u6210jar\u5305(springboot)\u548cdist\u9759\u6001\u8d44\u6e90(vite-vue)\u653e\u5230\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5373\u53ef<\/li>\n<li>\u5728\u670d\u52a1\u5668\u4e0aNode.js,Nginx,open-jdk,mysql \u662f\u5fc5\u987b\u7684&#xff0c;\u8981\u786e\u4fdd\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c<\/li>\n<li>\u5728windows\u4e0aNode.js\u662f\u5fc5\u987b\u7684&#xff0c;\u56e0\u4e3a\u5728\u672c\u5730\u8c03\u8bd5Vue\u9879\u76ee\u548c\u6253\u5305dist\u8d44\u6e90\u9700\u8981\u7528\u5230&#xff1b;mysql\u662f\u5fc5\u987b\u7684&#xff0c;\u8c03\u8bd5springboot\u4e2d\u7684\u6570\u636e\u5e93\u63a5\u53e3\u65f6\u9700\u8981&#xff1b;jdk\u53ef\u4ee5\u901a\u8fc7InteliJ\u7ba1\u7406&#xff0c;\u7248\u672c\u9700\u8981\u548c\u670d\u52a1\u5668\u4e0a\u7684\u4e00\u81f4&#xff0c;\u907f\u514d\u67d0\u4e9bjava\u7279\u6027\u4e0d\u652f\u6301&#xff0c;\u7528\u4e8e\u672c\u5730\u8fd0\u884c\u548c\u6253\u5305springboot\u9879\u76ee&#xff1b;<\/li>\n<li>\u672c\u5730\u8fd0\u884c\u7684springboot\u7aef\u53e3\u548c\u670d\u52a1\u5668\u8fd0\u884c\u7684\u7aef\u53e3\u8def\u5f84\u4e0d\u540c&#xff0c;\u6253\u5305\u53d1\u5e03\u524d\u9700\u8981\u8fdb\u884c\u5207\u6362&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5fe0\u544a<\/li>\n<\/ul>\n<h2>\u7cfb\u7edf\u548c\u73af\u5883<\/h2>\n<p>\u7cfb\u7edf\u5e73\u53f0: Ubuntu20.4 \u73af\u5883&#xff1a; \u524d\u7aef&#xff1a;Node.js,Vite-Vue,Element-plus \u540e\u7aef&#xff1a; Nginx openjdk 17.0.12 2024-07-16 mysql Ver 8.0.39-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)) SpringBoot(Jar\u5305\u5f62\u5f0f\u8fd0\u884c)<\/p>\n<h3>\u521b\u5efaVite-Vue\u5de5\u7a0b<\/h3>\n<p>\u521b\u5efa\u6587\u4ef6\u5939 D:\\\\vite-vue_proj \u6253\u5f00power shell\u7ec8\u7aef<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> D:<span class=\"token punctuation\">\\\\<\/span>vite-vue_proj<br \/>\n<span class=\"token comment\">#\u7528\u6700\u65b0\u7248\u672c\u7684vite\u4ee5vue\u4e3a\u6a21\u677f\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amy-vue-app\u7684\u5de5\u7a0b<\/span><br \/>\n<span class=\"token function\">npm<\/span> init vite&#064;latest my-vue-app &#8212; &#8211;template vue<br \/>\n<span class=\"token comment\">#\u4e0b\u8f7d\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7f51\u7edc\u95ee\u9898\u5931\u8d25\u62a5\u9519&#xff0c;\u53ef\u4ee5\u591a\u91cd\u8bd5\u51e0\u6b21<\/span><\/p>\n<p>\u6210\u529f\u521d\u59cb\u5316Vite-vue\u5de5\u7a0b&#xff0c;\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b<\/p>\n<p>&#8211; my-vue-app<br \/>\n  * src <span class=\"token comment\">#\u6e90\u7801\u6587\u4ef6\u5939<\/span><br \/>\n  &#043; assets <span class=\"token comment\">#\u8d44\u6e90\u6587\u4ef6<\/span><br \/>\n  * vue.svg<br \/>\n  &#043; components <span class=\"token comment\">#\u987e\u540d\u601d\u4e49&#xff0c;\u7ec4\u4ef6<\/span><br \/>\n  * component.vue<br \/>\n  &#043; App.vue <span class=\"token comment\">#\u8d77\u59cbVue&#xff0c;\u53ef\u4ee5\u5728\u8fd9\u91cc\u8f7d\u5165components\u4e2d\u5b9a\u4e49\u7684vue\u7ec4\u4ef6&#xff0c;\u7ec4\u5408\u6210\u4e30\u5bcc\u529f\u80fd\u7684\u9875\u9762<\/span><br \/>\n  &#043; main.js <span class=\"token comment\">#\u5728\u8fd9\u91cc\u521d\u59cb\u5316App&#xff0c;\u914d\u7f6e\u8def\u7531\u7b49<\/span><br \/>\n  &#043; style.css <span class=\"token comment\">#\u63a7\u5236\u6837\u5f0f<\/span><br \/>\n  * public <span class=\"token comment\">#\u516c\u5171\u8d44\u6e90\u6587\u4ef6\u5939<\/span><br \/>\n  &#043;  vite.svg<br \/>\n  * node_modules <span class=\"token comment\">#\u63d2\u4ef6\u6a21\u7ec4\u96c6\u5408&#xff0c;\u4e0b\u8f7d\u7684\u4e0e\u5de5\u7a0b\u76f8\u5173\u7684module\u90fd\u5728\u8fd9\u91cc<\/span><br \/>\n  &#043; <span class=\"token punctuation\">..<\/span>.some_module<br \/>\n  * index.html <span class=\"token comment\">#\u8d77\u59cb\u9875&#xff0c;\u7528\u4e8e\u52a0\u8f7dApp.vue&#xff0c;\u63d0\u4f9b\u57fa\u7840\u7684\u9759\u6001\u63a7\u4ef6<\/span><br \/>\n  * package-lock.json<br \/>\n  * package.json<br \/>\n  * README.md<br \/>\n  * vite.config.js <span class=\"token comment\">#\u9700\u8981\u5bf9vite\u8fdb\u884c\u914d\u7f6e&#xff0c;\u5728\u6b64\u5904\u914d\u7f6e<\/span><\/p>\n<h3>\u8fd0\u884cVite-Vue<\/h3>\n<h4>Windows\u672c\u5730\u8fd0\u884c<\/h4>\n<p>\u6253\u5f00power shell\u7ec8\u7aef<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> D:<span class=\"token punctuation\">\\\\<\/span>vite-vue_proj<span class=\"token punctuation\">\\\\<\/span>my-vue-app<br \/>\n<span class=\"token function\">npm<\/span> run dev<br \/>\n<span class=\"token comment\">#\u5c06\u4f1a\u51fa\u73b0\u5982\u4e0b\u8f93\u51fa<\/span><br \/>\n<span class=\"token operator\">&gt;<\/span> my-vue-app&#064;0.0.0 dev<br \/>\n<span class=\"token operator\">&gt;<\/span> vite<br \/>\n  VITE v5.4.8  ready <span class=\"token keyword\">in<\/span> <span class=\"token number\">852<\/span> ms<br \/>\n  \u279c  Local:   http:\/\/localhost:5173\/<br \/>\n  \u279c  Network: use &#8211;host to expose<br \/>\n  \u279c  press h &#043; enter to show <span class=\"token builtin class-name\">help<\/span><\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165http:\/\/localhost:5173\/ \u5373\u53ef\u8bbf\u95ee\u6b63\u5728\u8fd0\u884c\u7684vue\u9879\u76ee&#xff0c;\u51fa\u73b0\u5982\u4e0b\u753b\u9762&#xff0c;\u5373\u4e3a\u6210\u529f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429230044-68115a1cbe621.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u670d\u52a1\u5668\u7aef\u8fd0\u884c-Nginx\u4ee3\u7406**<\/h4>\n<p>\u9996\u5148\u5728windows\u7aef\u8fdb\u884c\u6253\u5305 \u6253\u5f00power shell\u7ec8\u7aef<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> D:<span class=\"token punctuation\">\\\\<\/span>vite-vue_proj<span class=\"token punctuation\">\\\\<\/span>my-vue-app<br \/>\n<span class=\"token function\">npm<\/span> run build<\/p>\n<p>my-vue-app\u6587\u4ef6\u5939\u4e0b\u751f\u6210 dist \u6587\u4ef6\u5939&#xff0c;\u8fd9\u4e2a\u5c31\u662f\u6240\u6709\u9700\u8981\u7684\u8d44\u6e90\u90fd\u6253\u5305\u5728\u4e00\u8d77\u4e86&#xff0c;\u901a\u8fc7\u9759\u6001\u670d\u52a1\u5668\u8fd0\u884c\u5c31\u53ef\u4ee5\u770b\u5230\u5b8c\u6574\u7684\u9875\u9762\u3002<\/p>\n<p>\u4e0a\u4f20\u5230\u670d\u52a1\u5668 \u901a\u8fc7ftp\u5de5\u5177\u6216\u4f7f\u7528scp\u5c06dist\u6587\u4ef6\u5939\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e2d&#xff1a;<\/p>\n<p><span class=\"token function\">scp<\/span> -r .\/dist ubuntu&#064;IP:\/home\/ubuntu\/vue-proj\/<\/p>\n<p>\u5982\u6b64&#xff0c;\u670d\u52a1\u5668\u4e2d\u7684\u8def\u5f84\u5373\u662f&#xff1a; \/home\/ubuntu\/vue-proj\/dist \u914d\u7f6eNginx \u5c06\u539f\u6765\u7684root\u8def\u5f84\u6539\u4e3adist\u7684\u8def\u5f84 sudo vim \/etc\/nginx\/sites-enabled\/default<\/p>\n<p><span class=\"token comment\"># \u8fd9\u662f\u4f60\u90e8\u7f72\u7684ip,\u5373\u4f60\u670d\u52a1\u5668\u7684Ip&#xff0c;\u6bd4\u5982111.22.223.44<\/span><br \/>\nserver_name  <span class=\"token number\">127.0<\/span>.0.1<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">#root \/var\/www\/html;<\/span><br \/>\nroot \/home\/ubuntu\/vue-proj\/dist<span class=\"token punctuation\">;<\/span><br \/>\nlocation \/ <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token comment\"># root   html;<\/span><\/p>\n<p>            try_files <span class=\"token variable\">$uri<\/span> <span class=\"token variable\">$uri<\/span>\/ \/index.html<span class=\"token punctuation\">;<\/span><\/p>\n<p>            index  index.html index.htm<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u91cd\u65b0\u52a0\u8f7dnginx  sudo nginx -t \u6d4b\u8bd5\u4e00\u4e0b\u6587\u4ef6\u7f16\u5199\u662f\u5426\u6709\u8bed\u6cd5\u95ee\u9898&#xff0c;\u4e0b\u4e00\u6b65  sudo nginx -s reload nginx\u5c06\u4f1a\u4f7f\u7528\u521a\u521a\u4fee\u6539\u7684\u914d\u7f6e\u6587\u4ef6\u91cd\u65b0\u8fd0\u884c\u670d\u52a1 \u73b0\u5728\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u670d\u52a1\u5668\u7684IP&#xff0c;\u67e5\u770b\u7f51\u9875\u662f\u5426\u6b63\u5e38\u8fd0\u884c\u3002 \u5982\u6709\u62a5\u9519&#xff0c;\u5219\u662f\u4e0a\u65b9\u914d\u7f6e\u6709\u5f02\u5e38&#xff0c;\u8bf7\u68c0\u67e5\u6587\u4ef6\u8def\u5f84&#xff0c;\u6216\u670d\u52a1\u5668\u7aef\u53e3(80\u548c8080\u7aef\u53e3)\u662f\u5426\u5141\u8bb8\u8bbf\u95ee\u3002<\/p>\n<p>\u4e00\u822c\u6765\u8bf4\u817e\u8baf\u4e91\u3001\u963f\u91cc\u4e91\u4e4b\u7c7b\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u5728\u4ed6\u4eec\u7684\u63a7\u5236\u53f0\u7ba1\u7406\u9875\u9762\u53ef\u4ee5\u76f4\u63a5\u8c03\u6574\u7aef\u53e3\u72b6\u6001&#xff1b;\u5176\u4ed6\u7684\u81ea\u5efa\u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u901a\u8fc7ufw\u6216firewall-cmd\u914d\u7f6e\u7cfb\u7edf\u9632\u706b\u5899&#xff0c;\u5f00\u653e\u7aef\u53e3\u3002<\/p>\n<p>\u7f51\u9875\u6210\u529f\u663e\u793a\u5219\u8868\u793a\u90e8\u7f72\u6210\u529f&#xff0c;\u540e\u7eed\u53ea\u8981\u5728windows\u7aef\u5f00\u53d1\u6d4b\u8bd5OK\u4e4b\u540e&#xff0c;\u5c06\u65b0\u6253\u5305\u7684dist\u66ff\u6362\u66f4\u65b0\u670d\u52a1\u5668\u4e0a\u7684dist\u5c31\u53ef\u4ee5\u4e86&#xff0c;\u65e0\u9700\u518d\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>\u672c\u8282\u4ecb\u7ecd\u4e86vite-vue\u9879\u76ee\u7684\u521b\u5efa\u548c\u6253\u5305&#xff0c;\u4ee5\u53ca\u5728nginx\u4e0a\u8fdb\u884c\u90e8\u7f72\u3002\u4e00\u4e2a\u5b8c\u6574\u7684\u7f51\u9875\u5e94\u8be5\u5305\u542b\u53ef\u89c6\u7684\u524d\u7aef\u9875\u9762\u548c\u53ef\u7528\u7684\u540e\u7aef\u63a5\u53e3&#xff0c;\u4e0b\u4e00\u8282\u5c06\u4f1a\u4ecb\u7ecd\u7528 SpringBooot \u5b8c\u6210\u540e\u7aef\u63a5\u53e3\u5f00\u53d1&#xff0c;\u4ee5\u53ca\u6570\u636e\u5e93\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\uff0c\u70b9\u8d5e17\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86vite-vue\u5728Windows\u4e0b\u7684\u5f00\u53d1\u6d41\u7a0b\u548c\u5982\u4f55\u7528Nginx\u4ee3\u7406\u9759\u6001\u9875\u9762_linux ubuntu \u600e\u4e48\u90e8\u7f72vite\u9879\u76ee<\/p>\n","protected":false},"author":2,"featured_media":34585,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[117,103,625,87,914,43],"topic":[],"class_list":["post-34586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-nginx","tag-ubuntu","tag-vue-js","tag-87","tag-ubuntu20-4nginx","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \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\/34586.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\uff0c\u70b9\u8d5e17\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86vite-vue\u5728Windows\u4e0b\u7684\u5f00\u53d1\u6d41\u7a0b\u548c\u5982\u4f55\u7528Nginx\u4ee3\u7406\u9759\u6001\u9875\u9762_linux ubuntu \u600e\u4e48\u90e8\u7f72vite\u9879\u76ee\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/34586.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-29T23:00:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429230044-68115a1cbe621.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\/34586.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/34586.html\",\"name\":\"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-29T23:00:45+00:00\",\"dateModified\":\"2025-04-29T23:00:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/34586.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/34586.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34586.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue\"}]},{\"@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":"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \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\/34586.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\uff0c\u70b9\u8d5e17\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u5c0f\u8282\u4ecb\u7ecd\u4e86vite-vue\u5728Windows\u4e0b\u7684\u5f00\u53d1\u6d41\u7a0b\u548c\u5982\u4f55\u7528Nginx\u4ee3\u7406\u9759\u6001\u9875\u9762_linux ubuntu \u600e\u4e48\u90e8\u7f72vite\u9879\u76ee","og_url":"https:\/\/www.wsisp.com\/helps\/34586.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-29T23:00:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250429230044-68115a1cbe621.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\/34586.html","url":"https:\/\/www.wsisp.com\/helps\/34586.html","name":"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-29T23:00:45+00:00","dateModified":"2025-04-29T23:00:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/34586.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/34586.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/34586.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728Ubuntu\u4e2d\u642d\u5efaSpringboot\u670d\u52a1\u5668\u548cVite-vue\u524d\u7aef(3)-Vite+Vue"}]},{"@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\/34586","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=34586"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/34585"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=34586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=34586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=34586"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=34586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}