{"id":734,"date":"2024-04-30T14:32:37","date_gmt":"2024-04-30T06:32:37","guid":{"rendered":"http:\/\/www.huerpu.cc:7000\/?p=734"},"modified":"2024-05-05T19:59:03","modified_gmt":"2024-05-05T11:59:03","slug":"vuepress2-0%e5%ae%89%e8%a3%85%e4%b8%8e%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/www.huerpu.cc:7000\/?p=734","title":{"rendered":"vuepress2.0\u5b89\u88c5\u4e0e\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"<h3>vuepress2.0\u5b89\u88c5\u4e0e\u4f7f\u7528\u6559\u7a0b<\/h3>\n<h3>\u4e00\u3001\u786e\u4fdd<code>Git<\/code>\u3001<code>Node<\/code>\u5b89\u88c5\u5b8c\u6bd5<\/h3>\n<pre><code class=\"language-cmd\">Windows PowerShell\nCopyright (C) Microsoft Corporation. All rights reserved.\nInstall the latest PowerShell for new features and improvements! https:\/\/aka.ms\/PSWindows\nPS C:\\Users\\Jason&gt; node -v\nv20.12.1\nPS C:\\Users\\Jason&gt; git -v\ngit version 2.41.0.windows.3<\/code><\/pre>\n<h3>\u4e8c\u3001\u5b89\u88c5pnpm<\/h3>\n<p>\u5982\u679c\u51fa\u73b0<code>1 package is looking for funding  run <\/code>npm fund<code> for details<\/code>\uff0c\u53ef\u4ee5\u5728cmd\u7a97\u6237\u6267\u884c<code>Set-ExecutionPolicy RemoteSigned<\/code>\u4fee\u6539\u5f53\u524d\u7b56\u7565\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u6267\u884cpnpm\u5305\u7684\u5b89\u88c5\u5566\u3002<\/p>\n<pre><code class=\"language-cmd\">npm config set registry http:\/\/registry.npmmirror.com \nnpm install pnpm -g<\/code><\/pre>\n<h3>\u4e09\u3001\u5b89\u88c5vuepress<\/h3>\n<p>\u8fdb\u5165\u684c\u9762\u7684<code>vuepress<\/code>\u6587\u4ef6\u5939\uff0c\u8fd0\u884c<code>pnpm create vuepress kelsen<\/code>\uff0c\u5176\u4e2d<code>kelsen<\/code>\u4e3a\u9879\u76ee\u540d\u3002<\/p>\n<pre><code class=\"language-cmd\">PS C:\\Users\\Jason&gt; cd .\\Desktop.\\vuepress\nPS C:\\Users\\Jason\\Desktop\\vuepress&gt; pnpm create vuepress kelsen\n...\/Local\/pnpm\/store\/v3\/tmp\/dlx-19276    |  +84 ++++++++\n...\/Local\/pnpm\/store\/v3\/tmp\/dlx-19276    | Progress: resolved 84, reused 0, downloaded 84, added 84, done\n? Select a language to display \/ \u9009\u62e9\u663e\u793a\u8bed\u8a00 \u7b80\u4f53\u4e2d\u6587\n? \u9009\u62e9\u5305\u7ba1\u7406\u5668 pnpm\n? \u4f60\u60f3\u8981\u4f7f\u7528\u54ea\u4e2a\u6253\u5305\u5668\uff1f vite\n? \u4f60\u60f3\u8981\u521b\u5efa\u4ec0\u4e48\u7c7b\u578b\u7684\u9879\u76ee\uff1f blog\n\u751f\u6210 package.json...\n? \u8bbe\u7f6e\u5e94\u7528\u540d\u79f0 kelsen\n? \u8bbe\u7f6e\u5e94\u7528\u7248\u672c\u53f7 0.0.1\n? \u8bbe\u7f6e\u5e94\u7528\u63cf\u8ff0 A VuePress project\n? \u8bbe\u7f6e\u534f\u8bae MIT\n? \u662f\u5426\u9700\u8981\u4e00\u4e2a\u81ea\u52a8\u90e8\u7f72\u6587\u6863\u5230 GitHub Pages \u7684\u5de5\u4f5c\u6d41\uff1f Yes\n\u751f\u6210\u6a21\u677f...\n\u5b89\u88c5\u4f9d\u8d56...\n\u8fd9\u53ef\u80fd\u9700\u8981\u6570\u5206\u949f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85.\n\u6211\u4eec\u65e0\u6cd5\u6b63\u786e\u8f93\u51fa\u5b50\u8fdb\u7a0b\u7684\u8fdb\u5ea6\u6761\uff0c\u6240\u4ee5\u8fdb\u7a0b\u53ef\u80fd\u4f1a\u770b\u4f3c\u672a\u54cd\u5e94\nPackages: +221\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\nProgress: resolved 280, reused 23, downloaded 198, added 221, done\nnode_modules\/.pnpm\/vue-demi@0.14.7_vue@3.4.21\/node_modules\/vue-demi: Running postinstall script, done in 118ms\nnode_modules\/.pnpm\/esbuild@0.19.12\/node_modules\/esbuild: Running postinstall script, done in 167ms\nnode_modules\/.pnpm\/esbuild@0.20.2\/node_modules\/esbuild: Running postinstall script, done in 164ms\n\ndevDependencies:\n+ @vuepress\/bundler-vite 2.0.0-rc.7\n+ @vuepress\/plugin-blog 2.0.0-rc.24\n+ @vuepress\/theme-default 2.0.0-rc.24\n+ vue 3.4.21\n+ vuepress 2.0.0-rc.9\n\n\u2009WARN\u2009 Issues with peer dependencies found\n.\n\u2514\u2500\u252c vuepress 2.0.0-rc.9\n  \u2514\u2500\u2500 \u2715 unmet peer @vuepress\/bundler-vite@2.0.0-rc.9: found 2.0.0-rc.7\n\nDone in 6.8s\n\u6a21\u677f\u5df2\u6210\u529f\u751f\u6210!\n? \u662f\u5426\u60f3\u8981\u73b0\u5728\u542f\u52a8 Demo \u67e5\u770b? Yes\n\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668...\n\u542f\u52a8\u6210\u529f\u540e\uff0c\u8bf7\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u7ed9\u51fa\u7684\u5f00\u53d1\u670d\u52a1\u5668\u5730\u5740(\u9ed8\u8ba4\u4e3a &#039;localhost:8080&#039;)\n\n> kelsen@0.0.1 docs:dev C:\\Users\\Jason\\Desktop\\vuepress\\kelsen\n> vuepress dev docs\n\n  vite v5.0.13 dev server running at:\n\n  \u279c  Local:   http:\/\/localhost:8080\/\n  \u279c  Network: http:\/\/192.168.75.1:8080\/\n  \u279c  Network: http:\/\/192.168.169.1:8080\/\n  \u279c  Network: http:\/\/192.168.0.153:8080\/\n<\/code><\/pre>\n<p>\u70b9\u51fb\u94fe\u63a5\uff0c\u6b64\u65f6\u663e\u793a<code>VuePress 2 <\/code>\u4ecb\u7ecd\u9875<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/08\/image-20240408144359486.png\" alt=\"image-20240408144359486\" \/><\/p>\n<p>\u505c\u6389\u4e4b\u540e\u60f3\u8981\u91cd\u65b0\u542f\u52a8\uff0c\u53ef\u4ee5\u8fdb\u5165\u5230\u9879\u76ee\u76ee\u5f55kelsen\uff0c\u7136\u540e\u8fd0\u884c<code>pnpm docs:dev<\/code>\u3002<\/p>\n<p>\u6253\u5f00comet\u6587\u4ef6\u5939\uff0c\u65b0\u5efa<code>.gitignore<\/code>\u6587\u4ef6\uff08git\u5ffd\u7565\u76ee\u5f55\uff09<\/p>\n<pre><code>#ide\n*.DS_Store\n.idea\n.vscode\n\n#npm\npackage-lock.json\nyarn.lock\n\n#build result\ndist\nlib\ndocs\/.vuepress\/.temp\ndocs\/.vuepress\/.cache\ndocs.vuepress\/dist\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n\n# Runtime config\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage\/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# Compiled binary addons (https:\/\/nodejs.org\/api\/addons.html)\nbuild\/Release\n\n# Dependency directories\nnode_modules\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL History\n.node_repl_history\n\n# Output of &#039;npm pack&#039;\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n\n#lerna-changelog\n.changelog\n\n#vscode history extension\n.history<\/code><\/pre>\n<h3>\u56db\u3001\u76ee\u5f55\u7ed3\u6784<\/h3>\n<pre><code class=\"language-tree\">\u251c\u2500\u2500 dist                 \u8f93\u51fa\u3010\u89c1\u914d\u7f6e\u7bc7\u3011\uff0c\u4f4d\u7f6e\u53ef\u81ea\u5b9a\u4e49\n\u251c\u2500\u2500 node_modules        \n\u251c\u2500\u2500 docs                 \n|  \u251c\u2500\u2500 .vuepress         \n|  |  \u251c\u2500\u2500 config.ts      \u914d\u7f6e\u3010\u89c1\u914d\u7f6e\u7bc7\u3011\n|  |  \u251c\u2500\u2500 public        \u3010\u9759\u6001\u8d44\u6e90\u3011\n|  |  \u2514\u2500\u2500 styles         \u81ea\u5b9a\u4e49\u6837\u5f0f  \u3010\u89c1\u7f8e\u5316\u7bc7\u3011   \n|  \u251c\u2500\u2500 Guide            \u3010\u5b50\u7248\u5757\u3011\u6587\u4ef6\u5939\uff0c\u540d\u5b57\u4efb\u610f\n|  |  \u2514\u2500\u2500 README.md     \u3010\u5b50\u7248\u5757\u3011\u9996\u9875\n|  \u251c\u2500\u2500 README.md        \u3010\u4e3b\u9875\u3011\n|  \u2514\u2500\u2500 en                \u82f1\u6587\u8bed\u8a00\uff0c\u540d\u5b57\u4efb\u610f\uff0c\u53ef\u9009\n|     \u2514\u2500\u2500 README.md      \u5bf9\u5e94\u8bed\u8a00\u9996\u9875\n\u251c\u2500\u2500 package.json         \u4f9d\u8d56\u9879\u76ee\u5f55\n\u251c\u2500\u2500 deploy.sh            Github\u3010\u90e8\u7f72\u65b9\u5f0f1\uff0c\u89c1\u90e8\u7f72\u7bc7\u3011\n\u251c\u2500\u2500 .github              Github\u3010\u90e8\u7f72\u65b9\u5f0f2\uff0c\u89c1\u90e8\u7f72\u7bc7\u3011\n|  \u2514\u2500\u2500 workflows         \n|     \u2514\u2500\u2500 main.yml       \n\u251c\u2500\u2500 .gitignore           git\u5ffd\u7565\u76ee\u5f55<\/code><\/pre>\n<p>\u6b32\u6c42\u5176\u89e3\uff0c\u5fc5\u7aa5\u5176\u5185\u3002\u6587\u6863\u9879\u76ee\u914d\u7f6e\ud83d\udcc1.vuepress\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<pre><code class=\"language-tree\">\ud83d\udcc1.vuepress\n\u251c\u2500\u2500 \ud83d\udcc2 .cache\u2003git \u5df2\u5ffd\u7565\n\u2502\u2003\u2003\u2514\u2500\u2500\u2026\u2026\n\u251c\u2500\u2500 \ud83d\udcc2 public\u2003\u9759\u6001\u6587\u4ef6\u5939\n\u2502\u2003\u2003 \u2514\u2500\u2500 comet.png\n\u251c\u2500\u2500 \ud83d\udcc2 .temp\u2003git\u5df2\u5ffd\u7565\n\u2502\u2003\u2003\u251c\u2500\u2500 internal\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 clientConfigs.js\u5ba2\u6237\u7aef\u914d\u7f6e\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 pagesComponents.js\u9875\u9762\u7ec4\u4ef6\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 pagesData.js\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 pagesRoutes.js \u9875\u9762\u8def\u7531\uff0c\u4e0d\u660e\u767d\u7684\u770b\u5b89\u88c5\u7bc7-\u8def\u7531\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500siteData.js\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u2514\u2500\u2500 themeData.js\n\u2502\u2003\u2003 \u251c\u2500\u2500 pages\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 404.html.js\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 404.html.vue\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 C\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 index.html.js \u5b50\u6a21\u5757\u9996\u9875\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u2502\u2003\u2003 \u2514\u2500\u2500 index.html.vue\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 index.html.js\u9996\u9875\uff0c\u4e5f\u5c31\u662f\u7ad9\u70b9README.md\u5185\u5bb9\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u2514\u2500\u2500 index.html.vue\n\u2502\u2003\u2003 \u251c\u2500\u2500 styles\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u251c\u2500\u2500 index.scss\u6837\u5f0f\u6587\u4ef6\n\u2502\u2003\u2003 \u2502\u2003\u2003 \u2514\u2500\u2500 palette.scss\n\u2502\u2003\u2003 \u2514\u2500\u2500 vite-root\n\u2502\u2003\u2003 \u2003\u2003\u2003 \u2514\u2500\u2500 index.html\n\u2514\u2500\u2500 \ud83d\udccb config.ts \u4e9f\u5f85\u5b8c\u6210\u7684\u914d\u7f6e\u6587\u4ef6<\/code><\/pre>\n<p>\u6253\u5f00\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u7f16\u8f91<code>package.json<\/code>\u3002\u4ee5\u4e0b\u5185\u5bb9\u53ef\u9009\uff0cSEO\u9700\u8981\u8fd9\u4e9b,\u4e0d\u9700\u8981\u7684\u8bdd\u53ef\u4ee5\u8df3\u8fc7<\/p>\n<pre><code class=\"language-json\">&quot;keywords&quot;: [\n    &quot;Java\u6559\u7a0b&quot;,\n    &quot;Java\u5de5\u7a0b\u5e08\u8bad\u7ec3\u8425&quot;,\n    &quot;Java\u540e\u7aef\u5de5\u7a0b\u5e08&quot;\n  ],\n&quot;author&quot;: &quot;Kelsen&quot;,\n&quot;homepage&quot;: &quot;www.huerpu.cc&quot;,\n&quot;repository&quot;: {\n    &quot;type&quot;: &quot;git&quot;,\n    &quot;url&quot;: &quot;http:\/\/www.huerpu.cc:2080\/&quot;\n},<\/code><\/pre>\n<h3>\u4e94\u3001\u642d\u5efa\u6587\u6863\u9996\u9875<\/h3>\n<p>Vuepress\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u63cf\u8ff0\u6587\u4ef6\u4f4d\u7f6e\uff0c\u518d\u8f6c\u5316\u4e3a\u8def\u7531\u8def\u5f84(\u8fd9\u4e2a\u6211\u4eec\u4e0d\u7528\u7ba1\uff09\uff0c\u4e0b\u8868\u5c55\u793a\u4e86\u4e8c\u8005\u7684\u5bf9\u5e94\u5173\u7cfb<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center;\">\u76f8\u5bf9\u8def\u5f84<\/th>\n<th style=\"text-align: center;\">\u8def\u7531\u8def\u5f84<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center;\">\/README.md<\/td>\n<td style=\"text-align: center;\">\/<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\/index.md<\/td>\n<td style=\"text-align: center;\">\/<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\/about.md<\/td>\n<td style=\"text-align: center;\">\/about.html<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\/vue\/README.md<\/td>\n<td style=\"text-align: center;\">\/vue\/<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u76f8\u5bf9\u8def\u5f84\u91ccREADME.md\u548cindex.md\u90fd\u4f1a\u8f6c\u5316\u6210index.html\uff0c\u4e24\u8005\u540c\u4e00\u5c42\u7ea7\u65f6\u4f1a\u51b2\u7a81\u7684<br \/>\n\u6362\u53e5\u8bdd\u8bf4\uff0cREADME.md\u548cindex.md\u4e0d\u80fd\u5728\u4e00\u4e2a\u6587\u4ef6\u5939\u5171\u5b58<\/p>\n<p>\u5728\ud83d\udcc1<code>docs<\/code>\u6587\u4ef6\u5939\u5185\u90e8\u4fee\u6539<code>README.md<\/code>\uff0c\u529f\u80fd\u8bf4\u660e\u5982\u4e0b<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: center;\">\u540d\u79f0<\/th>\n<th style=\"text-align: center;\">\u542b\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center;\">home<\/td>\n<td style=\"text-align: center;\">\u5224\u65ad\u662f\u5426\u662f\u9996\u9875<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">heroImage<\/td>\n<td style=\"text-align: center;\">\u9996\u9875logo\u56fe\uff0c\u652f\u6301svg\u3001png\u3001gif\u3001jpg<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">heroText<\/td>\n<td style=\"text-align: center;\">\u9996\u9875\u6807\u9898<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">tagline<\/td>\n<td style=\"text-align: center;\">\u9996\u9875\u6807\u8bed<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">actions<\/td>\n<td style=\"text-align: center;\">\u6309\u94ae\uff0ctext\u548clink\u53ef\u4ee5\u591a\u4e2a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">text<\/td>\n<td style=\"text-align: center;\">\u6309\u94ae\u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">link<\/td>\n<td style=\"text-align: center;\">\u6309\u94ae\u94fe\u63a5\uff0c\u5b50\u7248\u5757\u6587\u4ef6\u5939\u540d<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">features<\/td>\n<td style=\"text-align: center;\">\u6587\u6863\u5206\u680f\uff0ctitle\u548cdetails\u6570\u91cf\u81ea\u5b9a<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">footer<\/td>\n<td style=\"text-align: center;\">\u6587\u6863\u5e95\u90e8\u677f\u5757<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.1 \u9996\u9875\u6807\u9898\u548c\u6807\u8bed<\/h4>\n<p>\ud83d\udcc1<code>.vuepress<\/code>\u6587\u4ef6\u5939\u5185\u65b0\u5efa\ud83d\udcc1<code>public<\/code>\u6587\u4ef6\u5939\uff0c\u653e\u5165<code>kelsen.png<\/code>\u548c<code>favicon.ico<\/code>\u6587\u4ef6\uff0c<code>heroImage: \/kelsen.png<\/code>\u8bbe\u7f6e\u4e3akelsen\u7684\u5934\u50cf\uff0cheroText\u548ctagline\u5206\u522b\u4e3a\u9996\u9875\u6807\u9898\u548c\u6807\u8bed\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409121519066.png\" alt=\"image-20240409121519066\" \/><\/p>\n<h4>5.2 Logo\u8bbe\u7f6e<\/h4>\n<p>\u5728<code>defineUserConfig<\/code>\u4e0b\u4fee\u6539<code>title<\/code>\u4e3a<code>&#039;\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66&#039;<\/code>\uff0c\u5728<code>defaultTheme<\/code>\u4e0b\u589e\u52a0\u4e00\u4e2a<code>logo<\/code>\u8def\u5f84<\/p>\n<pre><code class=\"language-js\">export default defineUserConfig({\n  lang: &#039;en-US&#039;,\n  title: &#039;\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66&#039;,\n  description: &#039;KelsenJing VuePress Site&#039;,\n  permalink: &quot;\/:slug&quot;,\n  theme: defaultTheme({\n    logo: &#039;\/kelsen.png&#039;,\n})<\/code><\/pre>\n<p>\u663e\u793a\u6548\u679c\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409121850076.png\" alt=\"image-20240409121850076\" \/><\/p>\n<h4>5.3 \u7ad9\u70b9\u56fe\u6807\u8bbe\u7f6e<\/h4>\n<p>\u5728<code>config.js<\/code>\u4e2d\u589e\u52a0\u4fe1\u606f\uff0c\u6307\u5411\u4e00\u4e2a\u7f8e\u5973\u7684\u56fe\u7247\uff0c\u56fe\u7247\u5b58\u5728public\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n<pre><code class=\"language-js\">export default defineUserConfig({\n  head: [[&#039;link&#039;, { rel: &#039;icon&#039;, href: &#039;\/beauty.jpg&#039; }]],\n})<\/code><\/pre>\n<p>\u663e\u793a\u6548\u679c\u5982\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409123054174.png\" alt=\"image-20240409123054174\" \/><\/p>\n<p>\u4fee\u6539\u5b8c\u6210\u7684\u6587\u4ef6\u5982\u4e0b<\/p>\n<pre><code class=\"language-MD\">---\nhome: true\ntitle: Home\nheroImage: \/kelsen.png\nheroText: \u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66\ntagline: \u6bcf\u4e00\u4e2a\u70ed\u7231\u6280\u672f\u7684\u4eba\uff0c\u90fd\u503c\u5f97\u656c\u754f\n\nactions:\n  - text: Get Started\n    link: \/get-started.html\n    type: primary\n\n  - text: Introduction\n    link: https:\/\/vuejs.press\/guide\/introduction.html\n    type: secondary\n\nfeatures:\n  - title: Java\u540e\u7aef\u5f00\u53d1\u5de5\u7a0b\u5e08\u8bad\u7ec3\u8425\n    details: \u4ece\u5c0f\u767d\u5230\u5927\u795e\u7684\u8715\u53d8\uff0c\u7531\u5185\u5411\u5916\u7684\u63d0\u5347\uff0c\u7eaf\u7eaf\u7684\u5e72\u8d27.\n  - title: \u5206\u5e03\u5f0f\u9ad8\u5e76\u53d1\u4e0e\u5fae\u670d\u52a1\n    details: SpringBoot\u3001SpringCloud\u6846\u67b6\uff0c\u5e94\u5bf9\u9ad8\u53ef\u7528\u9ad8\u5e76\u53d1\u5e94\u7528\u573a\u666f.\n  - title: \u67b6\u6784\u4e0e\u4e2d\u95f4\u4ef6\n    details: \u4ee5\u67b6\u6784\u5e08\u7684\u773c\u5149\u770b\u5f85\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u628a\u63e1\u5404\u79cd\u4e2d\u95f4\u4ef6\u7684\u7075\u6d3b\u8fd0\u7528.\n\nfooter: Copyright \u00a9 2024-present KelsenJing All Rights Reserved. | Author KelsenJing\n---\n\nThis is the content of home page. Check [\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66][default-theme-home] for more details.\n\n[default-theme-home]: http:\/\/www.huerpu.cc<\/code><\/pre>\n<pre><code class=\"language-js\">import { defaultTheme } from &#039;@vuepress\/theme-default&#039;\nimport { defineUserConfig } from &#039;vuepress\/cli&#039;\nimport { viteBundler } from &#039;@vuepress\/bundler-vite&#039;\nexport default defineUserConfig({\n  lang: &#039;en-US&#039;,\n  title: &#039;\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66&#039;,\n  description: &#039;KelsenJing VuePress Site&#039;,\n  permalink: &quot;\/:slug&quot;,\n  head: [[&#039;link&#039;, { rel: &#039;icon&#039;, href: &#039;\/beauty.jpg&#039; }]],\n    theme: defaultTheme({\n    logo: &#039;\/kelsen.png&#039;,\n    navbar: [\n       &#039;\/&#039;,\n      &#039;\/get-started&#039;,\n    ],\n  }),\n  bundler: viteBundler(),\n})<\/code><\/pre>\n<h3>\u516d\u3001\u4e8c\u7ea7\u83dc\u5355\u8bbe\u7f6e<\/h3>\n<p>\u5728\ud83d\udcc1<code>docs<\/code>\u6587\u4ef6\u5939\u65b0\u5efa\u6587\u4ef6\u5939<code>Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b<\/code>\u548c<code>Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b<\/code>\uff0c\u4e24\u4e2a\u6587\u4ef6\u5939\u4e0b\u5b58\u653e\u5bf9\u5e94\u7684md\u6587\u4ef6\u6559\u7a0b\u3002\u4fee\u6539config.js\u6587\u4ef6\uff0c\u5728navbar\u4e0b\u589e\u52a0\u5bf9\u5e94\u7684\u4e8c\u7ea7\u83dc\u5355\uff0ctext\u6807\u8bc6\u663e\u793a\u7684\u6587\u5b57\uff0clink\u6807\u8bc6\u5bf9\u5e94\u6587\u4ef6\u5939\u4e0b\u7684md\u6587\u4ef6\u3002<\/p>\n<pre><code class=\"language-js\">import { defaultTheme } from &#039;@vuepress\/theme-default&#039;\nimport { defineUserConfig } from &#039;vuepress\/cli&#039;\nimport { viteBundler } from &#039;@vuepress\/bundler-vite&#039;\n\nexport default defineUserConfig({\n  lang: &#039;en-US&#039;,\n\n  title: &#039;\u52e4\u594b\u7684\u51ef\u5c14\u68ee\u540c\u5b66&#039;,\n  description: &#039;KelsenJing VuePress Site&#039;,\n  permalink: &quot;\/:slug&quot;,\n\n  theme: defaultTheme({\n    logo: &#039;\/kelsen.png&#039;,\n\n    navbar: [\n       &#039;\/&#039;,\n      &#039;\/get-started&#039;,\n\n      {\n        text: &#039;SpringCloud\u7cfb\u5217\u6559\u7a0b&#039;,\n        children:\n            [\n              {\n                text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b&#039;,\n                children:\n                    [\n                      { text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e00) \u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0(eureka)&#039;, link: &#039;\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e00) \u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0(eureka).md&#039; },\n                      { text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e8c) \u5ba2\u6237\u7aef\u8d1f\u8f7d\u5747\u8861Ribbon&#039;, link: &#039;\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e8c) \u5ba2\u6237\u7aef\u8d1f\u8f7d\u5747\u8861Ribbon.md&#039; },\n                      { text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e09) \u670d\u52a1\u6d88\u8d39\u8005(OpenFeign)&#039;, link: &#039;\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e09) \u670d\u52a1\u6d88\u8d39\u8005(OpenFeign).md&#039; },\n                      { text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u56db) \u65ad\u8def\u5668(Hystrix)&#039;, link: &#039;\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u56db) \u65ad\u8def\u5668(Hystrix).md&#039; },\n                      { text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e94) \u670d\u52a1\u7f51\u5173(Zuul)&#039;, link: &#039;\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e94) \u670d\u52a1\u7f51\u5173(Zuul).md&#039; },\n                    ]\n              },\n                {\n                    text: &#039;Spring Cloud(Finchley\u7248\u672c)\u7cfb\u5217\u6559\u7a0b&#039;,\n                    children:\n                        [\n                            { text: &#039;Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e00) \u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0(eureka)&#039;, link: &#039;\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e00) \u670d\u52a1\u6ce8\u518c\u4e0e\u53d1\u73b0(eureka).md&#039; },\n                            { text: &#039;Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e8c) \u670d\u52a1\u6d88\u8d39\u8005(RestTemplate+Loadbalancer)&#039;, link: &#039;\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e8c) \u670d\u52a1\u6d88\u8d39\u8005(RestTemplate+Loadbalancer).md&#039; },\n                            { text: &#039;Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e09) \u670d\u52a1\u6d88\u8d39\u8005(OpenFeign)&#039;, link: &#039;\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u4e09) \u670d\u52a1\u6d88\u8d39\u8005(OpenFeign).md&#039; },\n                            { text: &#039;Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u56db) \u65ad\u8def\u5668(Resilience4JCircuitBreaker\u3001RetryCircuitBreaker)&#039;, link: &#039;\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b(\u56db) \u65ad\u8def\u5668(Resilience4JCircuitBreaker\u3001RetryCircuitBreaker).md&#039; },\n                            { text: &#039;&#039;, link: &#039;\/Spring Cloud(Kilburn 2022.0.2\u7248\u672c)\u7cfb\u5217\u6559\u7a0b\/&#039; },\n                        ]\n                },\n            ],\n\n      },\n      {\n        text: &#039;\u5173\u4e8e&#039;,\n        link: &#039;\/about&#039;,\n      },\n\n    ],\n  }),\n  bundler: viteBundler(),\n})<\/code><\/pre>\n<p>\u663e\u793a\u51fa\u6765\u5c31\u662f\u8fd9\u4e2a\u6548\u679c<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409120812316.png\" alt=\"image-20240409120812316\" \/><\/p>\n<p>\u4e00\u7ea7\u83dc\u5355\u6bd4\u8f83\u7b80\u5355\uff0c\u8bf4\u660e\u4e00\u4e0b\u5427\u3002\u5728navbar\u4e0b\u589e\u52a0\u4e00\u4e2a\u5173\u4e8e\u7684\u83dc\u5355<\/p>\n<pre><code class=\"language-js\">{\n    text: &#039;\u5173\u4e8e&#039;,\n    link: &#039;\/about&#039;,\n},<\/code><\/pre>\n<h3>\u4e03\u3001search-pro\u672c\u5730\u641c\u7d22<\/h3>\n<p>\u5b89\u88c5\u641c\u7d22\u63d2\u4ef6<\/p>\n<pre><code class=\"language-cmd\">pnpm add -D vuepress-plugin-search-pro<\/code><\/pre>\n<p>\u5728config.js\u4e2d\u5bfc\u5165\u5305\uff0c\u5e76\u589e\u52a0plugins\u914d\u7f6e<\/p>\n<pre><code class=\"language-js\">\/\/\u5199\u5728config.js\u5f00\u5934\u5f15\u5165\u63d2\u4ef6\nimport { searchProPlugin } from &quot;vuepress-plugin-search-pro&quot;;\n\nexport default defineUserConfig({\n    plugins: [\n        searchProPlugin({\n            indexContent: true,\n            hotReload: true,\n    }),\n    ],\n})<\/code><\/pre>\n<p>\u663e\u793a\u6548\u679c<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409124502852.png\" alt=\"image-20240409124502852\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/09\/image-20240409124533508.png\" alt=\"image-20240409124533508\" \/><\/p>\n<h3>\u516b\u3001\u90e8\u7f72<\/h3>\n<h4>8.1 \u4e0a\u4f20\u5230github<\/h4>\n<p>\u901a\u8fc7idea\u5206\u4eab\u9879\u76ee\u5230github<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430163711698.png\" alt=\"image-20240430163711698\" \/><\/p>\n<p>\u8fd9\u91cc\u589e\u52a0\u4e00\u4e2agithub\u8d26\u53f7\uff0c\u7136\u540e\u8ba4\u8bc1\u767b\u5f55\u5c31\u597d\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/002.png\" alt=\"002\" \/><\/p>\n<p>\u63d0\u4ea4\u4e4b\u540e\uff0cgithub\u4e0a\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u9879\u76ee\u5566\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/003.jpg\" alt=\"003\" \/><\/p>\n<h4>8.2 \u90e8\u7f72\u5230github pages<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa\u6587\u4ef6<code>deploy.sh<\/code>\uff0c\u5176\u5185\u5bb9\u5982\u4e0b\u3002<\/p>\n<pre><code class=\"language-sh\">#!\/usr\/bin\/env sh\n\n# \u786e\u4fdd\u811a\u672c\u629b\u51fa\u9047\u5230\u7684\u9519\u8bef\nset -e\n\n# \u751f\u6210\u9759\u6001\u6587\u4ef6\nnpm run docs:build\n\n# \u8fdb\u5165\u751f\u6210\u7684\u6587\u4ef6\u5939\n#cd docs\/.vuepress\/dist\ncd dist\n\n# \u5982\u679c\u662f\u53d1\u5e03\u5230\u81ea\u5b9a\u4e49\u57df\u540d\n# echo &#039;www.example.com&#039; &gt; CNAME\n\ngit init\ngit add -A\ngit commit -m &#039;deploy&#039;\n\n# \u5982\u679c\u53d1\u5e03\u5230 https:\/\/&lt;USERNAME&gt;.github.io\n# git push -f git@github.com:&lt;&gt;\/&lt;USERNAME&gt;.github.io.git master\n\n# \u5982\u679c\u53d1\u5e03\u5230 https:\/\/&lt;USERNAME&gt;.github.io\/&lt;REPO&gt;\ngit push -f git@github.com:jinglisen\/Kelsen.git master:gh-pages\n\ncd -<\/code><\/pre>\n<p>\u4e0a\u9762\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u6709\u914d\u7f6e\u751f\u6210\u7684\u6587\u4ef6\u5939\u4e3adist\uff0c\u6240\u4ee5\u5728config.js\u4e2d\u589e\u52a0\u4e0b\u9762\u4e00\u6761\u8def\u5f84\u6307\u5b9a\u3002<\/p>\n<pre><code class=\"language-js\">export default defineUserConfig({\n  dest: &#039;dist&#039;,\n})<\/code><\/pre>\n<p>\u8fd0\u884cdeploy.sh<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430194628411.png\" alt=\"image-20240430194628411\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u5728\u751f\u6210\u9759\u6001\u6587\u4ef6\u4ee5\u53ca\u4e0a\u4f20\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430194718234.png\" alt=\"image-20240430194718234\" \/><\/p>\n<p>\u65b0\u5efa\u4e00\u4e2aGitHub Action<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430203911386.png\" alt=\"image-20240430203911386\" \/><\/p>\n<p>\u8fd9\u91cc\u53ea\u9700\u8981\u4fdd\u6301\u548cdeploy.sh\u4e2dpush\u7684\u5206\u652f\u4e00\u6837\u5c31\u597d\u3002\u5176\u4f59\u9ed8\u8ba4\uff0c\u70b9\u51fb\u63d0\u4ea4\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430204318114.png\" alt=\"image-20240430204318114\" \/><\/p>\n<p>\u7136\u540e\u8fd4\u56desettings\u7684pages\uff0c\u70b9\u51fb<code>https:\/\/jinglisen.github.io\/Kelsen\/<\/code>\u5c31\u53ef\u4ee5\u8bbf\u95ee\u5230\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430205115177.png\" alt=\"image-20240430205115177\" \/><\/p>\n<p>\u9875\u9762\u5c55\u793a\u5c31\u662f\u8fd9\u6837\u5b50\u7684\uff0c\u57df\u540d\u5730\u5740\u4e3a<code>https:\/\/jinglisen.github.io\/Kelsen\/<\/code>\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/04\/30\/image-20240430205132057.png\" alt=\"image-20240430205132057\" \/><\/p>\n<h4>8.3 \u81ea\u5b9a\u4e49\u57df\u540d\u8bbf\u95ee<\/h4>\n<p>\u5728deploy.sh\u4e2d\u589e\u52a0<code>echo &#039;kelsen.huerpu.cc&#039; &gt; CNAME<\/code>\u3002<\/p>\n<pre><code class=\"language-sh\">#!\/usr\/bin\/env sh\n\n# \u786e\u4fdd\u811a\u672c\u629b\u51fa\u9047\u5230\u7684\u9519\u8bef\nset -e\n\n# \u751f\u6210\u9759\u6001\u6587\u4ef6\nnpm run docs:build\n\n# \u8fdb\u5165\u751f\u6210\u7684\u6587\u4ef6\u5939\n#cd docs\/.vuepress\/dist\ncd dist\n\n# \u5982\u679c\u662f\u53d1\u5e03\u5230\u81ea\u5b9a\u4e49\u57df\u540d\necho &#039;kelsen.huerpu.cc&#039; &gt; CNAME\n\ngit init\ngit add -A\ngit commit -m &#039;deploy&#039;\n\n# \u5982\u679c\u53d1\u5e03\u5230 https:\/\/&lt;USERNAME&gt;.github.io\n# git push -f git@github.com:&lt;&gt;\/&lt;USERNAME&gt;.github.io.git master\n\n# \u5982\u679c\u53d1\u5e03\u5230 https:\/\/&lt;USERNAME&gt;.github.io\/&lt;REPO&gt;\ngit push -f git@github.com:jinglisen\/Kelsen.git master:gh-pages\n\ncd -<\/code><\/pre>\n<p>\u5728\u57df\u540d\u89e3\u6790\u589e\u52a0\u4e00\u6761CNAME\u7684\u8bb0\u5f55\uff0c\u4e3b\u673a\u8bb0\u5f55\u4e3akelsen\uff0c\u4e5f\u5c31\u662f\u4e8c\u7ea7\u57df\u540d\uff0c\u8bb0\u5f55\u503c\u6307\u5411<code>jinglisen.github.io<\/code>\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/QQ20240501085401.png\" alt=\"QQ\u622a\u56fe20240501085401\" \/><\/p>\n<p>\u5728\u9879\u76ee\u7684settings\u4e2d\uff0c\u589e\u52a0\u81ea\u5b9a\u4e49\u57df\u540d<code>kelsen.huerpu.cc<\/code>\uff0c\u6dfb\u52a0\u4e4b\u540e\u68c0\u6d4b<code>DNS check successful<\/code>\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/image-20240501085602285.png\" alt=\"image-20240501085602285\" \/><\/p>\n<p>\u8bbf\u95ee<code>https:\/\/kelsen.huerpu.cc\/<\/code>\uff0c\u53ef\u4ee5\u770b\u5230\u6837\u5f0f\u90fd\u4e71\u6389\u4e86\uff0c\u522b\u614c\uff0c\u6211\u4eec\u4fee\u6539\u4e00\u4e0bbase\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/image-20240501085620105.png\" alt=\"image-20240501085620105\" \/><\/p>\n<p>\u5728config.js\u4e2d\u4fee\u6539<code>base: &#039;\/&#039;<\/code>\uff0c\u7136\u540e\u91cd\u65b0deploy\u53d1\u5e03\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/image-20240501100109925.png\" alt=\"image-20240501100109925\" \/><\/p>\n<h4>8.4 \u90e8\u7f72\u5230Ubuntu\u670d\u52a1\u5668<\/h4>\n<pre><code class=\"language-shell\">sudo su -\n\napt install  net-tools -y \n\napt install ssh \n\ncd \/usr\n\nmkdir software\n\nchmod -R 777 software \n\napt install unzip\n\nunzip dist.zip\n\nmv dist\/ kelsen\/\n\nchmod -R 777 kelsen\n\n#\u5b89\u88c5nginx\napt install nginx-core -y\n#\u67e5\u770bnginx\u7248\u672c\nnginx -v\n#\u542f\u52a8nginx\nservice nginx start\n#\u505c\u6b62nginx\nservice nginx stop\n#\u5f00\u653e80\u7aef\u53e3\uff0cnginx\u9ed8\u8ba4\u7aef\u53e3\nufw allow 80\n\n# \u6253\u5f00\u9ed8\u8ba4\u7684 nginx \u914d\u7f6e\u6587\u4ef6\nvim \/etc\/nginx\/sites-available\/default\n\n#\u524d\u7aef\u8bbf\u95ee\u5730\u5740\nlocation \/ {\n                # First attempt to serve request as file, then\n                # as directory, then fall back to displaying a 404.\n                root \/usr\/software\/kelsen;\n                index index.html index.htm;\n                try_files $uri $uri\/ =404;\n}<\/code><\/pre>\n<p>\u8f93\u5165IP\u5730\u5740\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5230vuepress\u90e8\u7f72\u5230Ubuntu\u9996\u9875\u9762\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/image-20240501120424009.png\" alt=\"image-20240501120424009\" \/><\/p>\n<h4>8.5 \u5185\u7f51\u7a7f\u900f\u57df\u540d\u8bbf\u95ee<\/h4>\n<p>\u56e0\u4e3a\u6211\u6709\u4e00\u53f0\u963f\u91cc\u4e91\u4e3b\u673a\uff0c\u6709\u505a\u5185\u7f51\u7a7f\u900f\uff0c\u6240\u4ee5\u76f4\u63a5\u5728frpc.ini\u4e2d\u589e\u52a0\u4e00\u6761\u8bb0\u5f55<\/p>\n<pre><code class=\"language-ini\">[hep-vuepress]\ntype = tcp\nlocal_ip = 192.168.31.116\nlocal_port = 80\nremote_port = 80<\/code><\/pre>\n<p>\u5728\u963f\u91cc\u4e91\u4e3b\u673a\u5b89\u5168\u89c4\u5219\u4e2d\uff0c\u653e\u884c80\u7aef\u53e3\u3002<\/p>\n<p>\u8bbf\u95ee<code>http:\/\/www.huerpu.cc\/<\/code>\u5373\u53ef\u8bbf\u95ee\u5230\u535a\u5ba2\u4e3b\u9875\u5566\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/05\/01\/image-20240501122900441e48cb0efb289143a.png\" alt=\"image-20240501122900441\" \/><\/p>\n<blockquote>\n<p>\u5982\u679c\u4f60\u62f7\u8d1d\u4e86\u522b\u4eba\u7684vuepress\u9879\u76ee\uff0c\u8fdb\u5165\u9879\u76ee\u6587\u4ef6\u5939\u6267\u884cnpm install\u8fdb\u884c\u4f9d\u8d56\u7684\u5b89\u88c5\u5373\u53ef\uff0c\u5426\u5219\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u53c2\u8003\u6559\u7a0bpasswordgloo <a href=\"https:\/\/blog.csdn.net\/passwordgloo\/article\/details\/129114625\">https:\/\/blog.csdn.net\/passwordgloo\/article\/details\/129114625<\/a><\/p>\n<p>vuepress2\u5b98\u65b9\u4f7f\u7528\u6587\u6863 <a href=\"https:\/\/v2.vuepress.vuejs.org\/zh\/guide\/configuration.html\">https:\/\/v2.vuepress.vuejs.org\/zh\/guide\/configuration.html<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>vuepress2.0\u5b89\u88c5\u4e0e\u4f7f\u7528\u6559\u7a0b \u4e00\u3001\u786e\u4fddGit\u3001Node\u5b89\u88c5\u5b8c\u6bd5 Windows PowerShell  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-734","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=734"}],"version-history":[{"count":2,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/734\/revisions"}],"predecessor-version":[{"id":738,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=\/wp\/v2\/posts\/734\/revisions\/738"}],"wp:attachment":[{"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=734"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.huerpu.cc:7000\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}