{"id":41780,"date":"2025-06-04T15:20:40","date_gmt":"2025-06-04T07:20:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/41780.html"},"modified":"2025-06-04T15:20:40","modified_gmt":"2025-06-04T07:20:40","slug":"%e4%b8%80%e6%ad%a5%e4%b8%80%e6%ad%a5%e9%85%8d%e7%bd%ae-ubuntu-server-%e7%9a%84-nodejs-%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%af%a6%e7%bb%86%e5%ae%9e%e5%bd%95-3-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/41780.html","title":{"rendered":"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5"},"content":{"rendered":"<h3>\u524d\u8a00<\/h3>\n<p>\u524d\u9762&#xff0c;\u6211\u4eec\u5df2\u7ecf \u5b89\u88c5\u597d\u4e86 Ubuntu \u670d\u52a1\u5668\u7cfb\u7edf&#xff0c;\u5e76\u4e14 \u914d\u7f6e\u597d\u4e86 ssh \u514d\u5bc6\u767b\u5f55\u670d\u52a1\u5668 &#xff0c;\u73b0\u5728&#xff0c;\u6211\u4eec\u8981\u6765\u8fdb\u4e00\u6b65\u7684\u8bbe\u7f6e\u670d\u52a1\u5668\u3002<\/p>\n<p>\u90a3\u4e48&#xff0c;\u672c\u6587&#xff0c;\u5c31\u662f\u8fdb\u884c\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u66f4\u65b0&#xff0c;\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u7684\u5b89\u88c5<\/p>\n<h3>\u8c03\u6574 Ubuntu \u7684\u6e90\u4e3a\u963f\u91cc\u6e90<\/h3>\n<p>\u5728\u6211\u4eec\u5b89\u88c5\u670d\u52a1\u5668\u7684\u65f6\u5019&#xff0c;\u6211\u5efa\u8bae\u5927\u5bb6\u4e00\u5b9a\u8981\u66f4\u6539\u4e3a \u963f\u91cc\u6e90&#xff0c; \u4f46\u662f&#xff0c;\u53ef\u80fd\u6709\u624b\u5feb\u7684\u670b\u53cb&#xff0c;\u5f53\u65f6\u6ca1\u6709\u66f4\u6539\u3002\u6ca1\u5173\u7cfb&#xff0c;\u6211\u4eec\u8fd8\u53ef\u4ee5\u540e\u7eed\u8c03\u6574\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u963f\u91cc\u6e90\u7684\u5b98\u65b9\u6587\u6863&#xff0c;https:\/\/developer.aliyun.com\/mirror\/ubuntu<\/p>\n<p>\u56e0\u4e3a\u6211\u4eec\u4f7f\u7528\u7684\u662f Ubuntu V24 \u7684\u7cfb\u7edf&#xff0c;\u6240\u4ee5\u7f16\u8f91 \/etc\/apt\/sources.list \u6587\u4ef6&#xff0c;\u66ff\u6362\u4e3a<\/p>\n<p>deb https:\/\/mirrors.aliyun.com\/ubuntu\/ noble main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.aliyun.com\/ubuntu\/ noble main restricted universe multiverse<\/p>\n<p>deb https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-security main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-security main restricted universe multiverse<\/p>\n<p>deb https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-updates main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-updates main restricted universe multiverse<\/p>\n<p><span class=\"token comment\"># deb https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-proposed main restricted universe multiverse<\/span><br \/>\n<span class=\"token comment\"># deb-src https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-proposed main restricted universe multiverse<\/span><\/p>\n<p>deb https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-backports main restricted universe multiverse<br \/>\ndeb-src https:\/\/mirrors.aliyun.com\/ubuntu\/ noble-backports main restricted universe multiverse<\/p>\n<p>\u7531\u4e8e\u6211\u5728\u5b89\u88c5\u7684\u65f6\u5019\u5c31\u5df2\u7ecf\u914d\u7f6e\u4e86\u963f\u91cc\u6e90&#xff0c;\u6240\u4ee5\u6211\u8df3\u8fc7\u8fd9\u4e00\u6b65\u3002<\/p>\n<h3>\u66f4\u65b0\u7cfb\u7edf<\/h3>\n<p>\u76f4\u63a5\u770b\u547d\u4ee4\u5427&#xff0c;\u6211\u5728\u547d\u4ee4\u91cc\u5199\u6ce8\u91ca<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u7cfb\u7edf\u7248\u672c<\/span><br \/>\nlsb_release <span class=\"token parameter variable\">-a<\/span><br \/>\n<span class=\"token comment\"># \u67e5\u770b\u5185\u6838\u7248\u672c<\/span><br \/>\n<span class=\"token function\">uname<\/span> <span class=\"token parameter variable\">-a<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250604072038-683ff3c63ade6.png\" alt=\"\u67e5\u770b\u7cfb\u7edf\u60c5\u51b5\" \/><\/p>\n<p><span class=\"token comment\"># \u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868&#xff08;\u540c\u6b65\u672c\u5730\u8f6f\u4ef6\u5305\u7d22\u5f15\u548c\u8fdc\u7a0b\u4ed3\u5e93&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token comment\"># \u5347\u7ea7\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u5230\u6700\u65b0\u7248\u672c&#xff08;\u4e0d\u5904\u7406\u4f9d\u8d56\u5173\u7cfb\u7684\u91cd\u5927\u53d8\u66f4&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165\u540e\u4f1a\u8dd1\u7801&#xff0c;\u6839\u636e\u9700\u8981\u6309 Y \u56de\u8f66\u786e\u8ba4<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> upgrade       <span class=\"token comment\"># \u6216\u4f7f\u7528 sudo apt full-upgrade<\/span><br \/>\n<span class=\"token comment\"># \u6e05\u7406\u65e0\u7528\u5305&#xff08;\u7cfb\u7edf\u8fd0\u884c\u5e76\u5b89\u88c5\u548c\u5378\u8f7d\u4e86\u4e0d\u5c11\u4e1c\u897f\u540e&#xff0c;\u4f7f\u7528&#xff0c;\u5f53\u524d\u4e0d\u9700\u8981\u6267\u884c&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> autoremove<br \/>\n<span class=\"token comment\"># \u91cd\u542f\u7cfb\u7edf<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">reboot<\/span><\/p>\n<p>\u56e0\u4e3a\u6211\u4eec\u7684\u767b\u5f55\u7528\u6237\u662f\u666e\u901a\u7528\u6237&#xff0c;\u6267\u884c\u8fd9\u4e9b\u547d\u4ee4\u9700\u8981\u4e34\u65f6\u63d0\u6743&#xff0c;\u6240\u4ee5\u7528\u5230 sudo \u547d\u4ee4\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u4f7f\u7528 sudo \u547d\u4ee4&#xff0c;\u9700\u8981\u8f93\u5165\u767b\u5f55\u5bc6\u7801\u786e\u8ba4&#xff0c;\u5728\u8f83\u77ed\u7684\u65f6\u95f4\u5185\u518d\u6b21\u4f7f\u7528 sudo \u547d\u4ee4\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801\u3002\u95f4\u9694\u65f6\u95f4\u7a0d\u5fae\u957f\u4e00\u70b9&#xff0c;\u8fd8\u9700\u8981\u4f7f\u7528\u5bc6\u7801\u786e\u8ba4\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250604072038-683ff3c6573f9.png\" alt=\"\u5347\u7ea7\u5b8c\u6210\" \/><\/p>\n<h3>\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6<\/h3>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b&#xff0c;\u6211\u4eec\u5e38\u7528\u7684\u670d\u52a1\u5668\u547d\u4ee4\u6709\u4ee5\u4e0b&#xff1a;<\/p>\n<h4>1. git \u7248\u672c\u63a7\u5236\u5de5\u5177\u200c<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/li>\n<li>\u200c\u5e38\u7528\u64cd\u4f5c\u200c&#xff1a;\n<ul>\n<li>git clone [url] # \u514b\u9686\u8fdc\u7a0b\u4ed3\u5e93<\/li>\n<li>git pull # \u62c9\u53d6\u6700\u65b0\u4ee3\u7801<\/li>\n<li>git commit -m &#034;msg&#034; # \u63d0\u4ea4\u53d8\u66f4<\/li>\n<li>git push # \u63a8\u9001\u4ee3\u7801\u5230\u8fdc\u7a0b<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u5178\u578b\u573a\u666f\u200c&#xff1a;\u56e2\u961f\u534f\u4f5c\u5f00\u53d1\u3001\u4ee3\u7801\u56de\u6eda\u3001\u5206\u652f\u7ba1\u7406<\/li>\n<li>\u66f4\u591a\u53c2\u8003&#xff1a; \u5e38\u7528 git \u547d\u4ee4\u4ee5\u53ca\u5904\u7406\u6280\u5de7<\/li>\n<\/ul>\n<h4>2. vim &#8211; \u7ec8\u7aef\u6587\u672c\u7f16\u8f91\u5668<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u9ad8\u6548\u547d\u4ee4\u884c\u6587\u672c\u7f16\u8f91<\/li>\n<li>\u200c\u5e38\u7528\u64cd\u4f5c\u200c&#xff1a;\n<ul>\n<li>vim file.txt # \u6253\u5f00\u6587\u4ef6<\/li>\n<li>i \u2192 \u7f16\u8f91 \u2192 ESC \u2192 :wq # \u7f16\u8f91\u4fdd\u5b58\u6d41\u7a0b<\/li>\n<li>:set nu # \u663e\u793a\u884c\u53f7<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u4f18\u52bf\u200c&#xff1a;\u65e0\u9700\u56fe\u5f62\u754c\u9762\u3001\u652f\u6301\u6b63\u5219\u66ff\u6362\u3001\u63d2\u4ef6\u6269\u5c55<\/li>\n<li>\u66f4\u591a\u53c2\u8003&#xff1a; \u4e16\u754c\u4e0a\u6700\u725b\u7684\u7f16\u8f91\u5668&#xff1a; Vim 1 (\u539f\u521b\u52a8\u56fe\u6f14\u793a\u6240\u6709\u4f8b\u5b50!) \u4e16\u754c\u4e0a\u6700\u725b\u7684\u7f16\u8f91\u5668&#xff1a; Vim 2 (\u539f\u521b\u52a8\u56fe\u6f14\u793a\u6240\u6709\u4f8b\u5b50!) \u4e16\u754c\u4e0a\u6700\u725b\u7684\u7f16\u8f91\u5668&#xff1a; Vim 3 (\u539f\u521b\u52a8\u56fe\u6f14\u793a\u6240\u6709\u4f8b\u5b50!) FungLeo \u7684 Vim \u914d\u7f6e&#xff0c;\u6211\u7684\u914d\u7f6e\u4e0d\u590d\u6742&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u54e6&#xff01;<\/li>\n<\/ul>\n<h4>3. wget &#8211; \u975e\u4ea4\u4e92\u5f0f\u4e0b\u8f7d<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u652f\u6301HTTP\/HTTPS\/FTP\u4e0b\u8f7d<\/li>\n<li>\u200c\u5e38\u7528\u53c2\u6570\u200c&#xff1a;\n<ul>\n<li>wget -c [url] # \u65ad\u70b9\u7eed\u4f20<\/li>\n<li>wget -O filename [url] # \u6307\u5b9a\u4fdd\u5b58\u540d\u79f0<\/li>\n<li>wget -r [url] # \u9012\u5f52\u4e0b\u8f7d<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u5178\u578b\u573a\u666f\u200c&#xff1a;\u81ea\u52a8\u5316\u811a\u672c\u4e0b\u8f7d\u3001\u955c\u50cf\u7f51\u7ad9<\/li>\n<\/ul>\n<h4>4. \u200ccurl &#8211; \u7f51\u7edc\u8bf7\u6c42\u5de5\u5177<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u4f20\u8f93\u6570\u636e\u5e76\u663e\u793a<\/li>\n<li>\u200c\u5178\u578b\u7528\u6cd5\u200c&#xff1a;\n<ul>\n<li>curl -X GET\/POST [url] # API\u6d4b\u8bd5<\/li>\n<li>curl -o file [url] # \u4e0b\u8f7d\u6587\u4ef6<\/li>\n<li>curl -I [url] # \u4ec5\u663e\u793a\u54cd\u5e94\u5934<\/li>\n<\/ul>\n<\/li>\n<li>\u66f4\u591a\u53c2\u8003 curl \u6a21\u62df GET\\\\POST \u8bf7\u6c42&#xff0c;\u4ee5\u53ca curl post \u4e0a\u4f20\u6587\u4ef6 linux \u6216 mac \u547d\u4ee4\u884c\u66f4\u4f18\u96c5\u7684\u4f7f\u7528 curl \u547d\u4ee4&#xff0c;\u4ee5\u53ca\u547d\u4ee4\u884c\u5e38\u7528\u7684\u5feb\u6377\u952e\u8bf4\u660e<\/li>\n<\/ul>\n<h4>5. tmux &#8211; \u7ec8\u7aef\u590d\u7528\u5668<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u4f1a\u8bdd\u6301\u4e45\u5316<\/li>\n<li>\u200c\u5173\u952e\u64cd\u4f5c\u200c&#xff1a;\n<ul>\n<li>tmux new -s [name] # \u521b\u5efa\u4f1a\u8bdd<\/li>\n<li>Ctrl&#043;b d # \u5206\u79bb\u4f1a\u8bdd<\/li>\n<li>tmux attach -t [name] # \u6062\u590d\u4f1a\u8bdd<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u4f18\u52bf\u200c&#xff1a;SSH\u65ad\u5f00\u540e\u4efb\u52a1\u6301\u7eed\u8fd0\u884c<\/li>\n<\/ul>\n<h4>6. htop &#8211; \u8fdb\u7a0b\u76d1\u63a7<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u4ea4\u4e92\u5f0f\u7cfb\u7edf\u76d1\u63a7<\/li>\n<li>\u200c\u7279\u8272\u529f\u80fd\u200c&#xff1a;\n<ul>\n<li>\u989c\u8272\u6807\u8bc6CPU\/\u5185\u5b58\u8d1f\u8f7d<\/li>\n<li>\u652f\u6301\u8fdb\u7a0b\u6811\u72b6\u56fe<\/li>\n<li>\u5feb\u6377\u952e\u6740\u8fdb\u7a0b(F9)<\/li>\n<\/ul>\n<\/li>\n<li>\u200c\u5bf9\u6bd4\u200c&#xff1a;\u6bd4top\u66f4\u76f4\u89c2<\/li>\n<\/ul>\n<h4>7. \u200cjq &#8211; JSON\u5904\u7406\u5668<\/h4>\n<ul>\n<li>\u200c\u6838\u5fc3\u529f\u80fd\u200c&#xff1a;\u547d\u4ee4\u884c\u89e3\u6790JSON<\/li>\n<li>\u200c\u793a\u4f8b\u200c&#xff1a;\n<ul>\n<li>curl [api] | jq &#039;.data&#039; # \u63d0\u53d6\u5b57\u6bb5<\/li>\n<li>jq &#039;map(.id)&#039; file.json # \u6279\u91cf\u5904\u7406<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u597d&#xff0c;\u6211\u4eec\u5148\u5b89\u88c5\u4ee5\u4e0a7\u4e2a\u5de5\u5177&#xff0c;\u65b9\u4fbf\u6211\u4eec\u4ee5\u540e\u7684\u65e5\u5e38\u4f7f\u7528\u3002\u5b89\u88c5\u547d\u4ee4\u5982\u4e0b<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">git<\/span> <span class=\"token function\">vim<\/span> <span class=\"token function\">wget<\/span> tmux <span class=\"token function\">htop<\/span> jq <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u5176\u4e2d curl \u5df2\u7ecf\u81ea\u5e26\u4e86&#xff0c;\u6240\u4ee5\u4e0d\u9700\u8981\u5b89\u88c5\u3002\u8f93\u5165\u547d\u4ee4\u5e76\u56de\u8f66&#xff0c;\u8dd1\u7801\u5b8c\u6210\u540e&#xff0c;\u5373\u53ef\u5168\u90e8\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250604072038-683ff3c6abc5f.png\" alt=\"\u5e38\u7528\u8f6f\u4ef6\u88c5\" \/><\/p>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u5b89\u88c5\u548c\u66f4\u65b0&#xff0c;\u6211\u4eec\u7684\u670d\u52a1\u5668\u7cfb\u7edf&#xff0c;\u5c31\u53ef\u4ee5\u6b63\u5f0f\u8fdb\u5165\u5de5\u4f5c\u72b6\u6001\u5566&#xff01;\u6211\u76f8\u4fe1\u8fd9\u5bf9\u5927\u5bb6\u6765\u8bf4&#xff0c;\u4e00\u70b9\u90fd\u4e0d\u590d\u6742\u54e6&#xff01;<\/p>\n<p>\u53e6\u5916&#xff0c;\u6211\u770b\u4e86\u4e00\u4e0b\u6211\u4ee5\u5f80\u7684\u6587\u7ae0&#xff0c;\u5c45\u7136\u6ca1\u6709\u5bf9 Tmux \u8fd9\u4e2a\u5de5\u5177\u6709\u8be6\u7ec6\u7684\u8bf4\u660e&#xff0c;\u771f\u662f\u5931\u804c\u554a&#xff0c;\u6211\u5199\u5b8c\u8fd9\u4e00\u4e2a\u7cfb\u5217\u7684\u6587\u7ae0\u540e&#xff0c;\u4f1a\u5bf9\u8fd9\u4e2a\u5de5\u5177\u8be6\u7ec6\u7684\u8bf4\u660e\u4e00\u4e0b&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u671f\u5f85\u3002<\/p>\n<p>\u53e6\u5916&#xff0c;\u6211\u8ba1\u5212\u5199\u4e00\u7cfb\u5217\u7684\u6587\u7ae0\u6765\u5b8c\u5584\u8fd9\u4e2a\u4e3b\u9898&#xff0c;\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668&#xff0c;\u76ee\u524d\u5df2\u7ecf\u5b8c\u6210\u4e09\u7bc7&#xff0c;\u5927\u5bb6\u559c\u6b22\u7684\u8bdd&#xff0c;\u4e00\u5b9a\u8981\u591a\u591a\u70b9\u8d5e\u6536\u85cf&#xff0c;\u8bc4\u8bba\u7559\u8a00&#xff0c;\u5173\u6ce8\u6211\u54e6&#xff01;\u8c22\u8c22\u5927\u5bb6&#xff01;<\/p>\n<p>\u5927\u6982\u76ee\u5f55\u5982\u4e0b&#xff1a;<\/p>\n<p>\u300aPVE\u865a\u62df\u673a \u5b89\u88c5 Ubuntu Server \u7cfb\u7edf\u300b \u300aSSH \u914d\u7f6e&#xff0c;\u8ba9\u6211\u4eec\u8fdc\u7a0b\u8fde\u4e0a\u865a\u62df\u673a\u300b \u300a\u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0&#xff0c;\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5\u300b \u300a\u914d\u7f6e\u670d\u52a1\u5668\u7ec8\u7aef\u73af\u5883 zsh , oh my zsh, vim\u300b \u300aNvm \u5b89\u88c5 NodeJS\u73af\u5883&#xff0c;\u4ee5\u53ca Nginx \u7684\u5b89\u88c5\u548c\u914d\u7f6e\u300b \u300aMysql \u7684\u5b89\u88c5\u548c\u914d\u7f6e\u300b \u300apm2 \u670d\u52a1\u7aef\u8fdb\u7a0b\u7ba1\u7406\u7684\u4f7f\u7528\u548c\u914d\u7f6e\u300b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb938\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Ubuntu Server\u7cfb\u7edf\u7684\u540e\u7eed\u914d\u7f6e\u6b65\u9aa4\uff0c\u5305\u62ec\u66f4\u65b0\u7cfb\u7edf\u548c\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6\u3002\u9996\u5148\u6307\u5bfc\u5c06\u8f6f\u4ef6\u6e90\u66ff\u6362\u4e3a\u963f\u91cc\u6e90\u4ee5\u63d0\u5347\u4e0b\u8f7d\u901f\u5ea6\uff0c\u7136\u540e\u901a\u8fc7apt\u547d\u4ee4\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u5305\u3002\u63a5\u7740\u8be6\u7ec6\u4ecb\u7ecd\u4e867\u4e2a\u670d\u52a1\u5668\u5e38\u7528\u5de5\u5177\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u7528\u6cd5\uff1agit\u7248\u672c\u63a7\u5236\u3001vim\u6587\u672c\u7f16\u8f91\u3001wget\u4e0b\u8f7d\u5de5\u5177\u3001curl\u7f51\u7edc\u8bf7\u6c42\u3001tmux\u7ec8\u7aef\u590d\u7528\u3001htop\u8fdb\u7a0b\u76d1\u63a7\u548cjq JSON\u5904\u7406\u3002\u8fd9\u4e9b\u5de5\u5177\u6db5\u76d6\u4e86\u7248\u672c\u7ba1\u7406\u3001\u6587\u4ef6\u7f16\u8f91\u3001\u7f51\u7edc\u64cd\u4f5c\u3001\u7cfb\u7edf\u76d1\u63a7\u7b49\u670d\u52a1\u5668\u65e5\u5e38\u4f7f\u7528\u573a\u666f\u3002\u6587\u7ae0\u8fd8\u9884\u544a\u4e86\u540e\u7eed\u5c06\u53d1\u5e03\u7684\u670d\u52a1\u5668\u914d\u7f6e\u7cfb\u5217\u6559\u7a0b\uff0c\u5305\u62ecNodeJS\u73af\u5883\u642d\u5efa\u3001Nginx\u914d\u7f6e\u7b49\u5185\u5bb9\u3002\u6240\u6709\u64cd\u4f5c\u5747<\/p>\n","protected":false},"author":2,"featured_media":41777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3848,103,3849,100,43],"topic":[],"class_list":["post-41780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-fungleo","tag-ubuntu","tag-ubuntu-server","tag-100","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \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\/41780.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb938\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Ubuntu Server\u7cfb\u7edf\u7684\u540e\u7eed\u914d\u7f6e\u6b65\u9aa4\uff0c\u5305\u62ec\u66f4\u65b0\u7cfb\u7edf\u548c\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6\u3002\u9996\u5148\u6307\u5bfc\u5c06\u8f6f\u4ef6\u6e90\u66ff\u6362\u4e3a\u963f\u91cc\u6e90\u4ee5\u63d0\u5347\u4e0b\u8f7d\u901f\u5ea6\uff0c\u7136\u540e\u901a\u8fc7apt\u547d\u4ee4\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u5305\u3002\u63a5\u7740\u8be6\u7ec6\u4ecb\u7ecd\u4e867\u4e2a\u670d\u52a1\u5668\u5e38\u7528\u5de5\u5177\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u7528\u6cd5\uff1agit\u7248\u672c\u63a7\u5236\u3001vim\u6587\u672c\u7f16\u8f91\u3001wget\u4e0b\u8f7d\u5de5\u5177\u3001curl\u7f51\u7edc\u8bf7\u6c42\u3001tmux\u7ec8\u7aef\u590d\u7528\u3001htop\u8fdb\u7a0b\u76d1\u63a7\u548cjq JSON\u5904\u7406\u3002\u8fd9\u4e9b\u5de5\u5177\u6db5\u76d6\u4e86\u7248\u672c\u7ba1\u7406\u3001\u6587\u4ef6\u7f16\u8f91\u3001\u7f51\u7edc\u64cd\u4f5c\u3001\u7cfb\u7edf\u76d1\u63a7\u7b49\u670d\u52a1\u5668\u65e5\u5e38\u4f7f\u7528\u573a\u666f\u3002\u6587\u7ae0\u8fd8\u9884\u544a\u4e86\u540e\u7eed\u5c06\u53d1\u5e03\u7684\u670d\u52a1\u5668\u914d\u7f6e\u7cfb\u5217\u6559\u7a0b\uff0c\u5305\u62ecNodeJS\u73af\u5883\u642d\u5efa\u3001Nginx\u914d\u7f6e\u7b49\u5185\u5bb9\u3002\u6240\u6709\u64cd\u4f5c\u5747\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/41780.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-04T07:20:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250604072038-683ff3c63ade6.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\/41780.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/41780.html\",\"name\":\"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-04T07:20:40+00:00\",\"dateModified\":\"2025-06-04T07:20:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/41780.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/41780.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41780.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5\"}]},{\"@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":"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \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\/41780.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb938\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Ubuntu Server\u7cfb\u7edf\u7684\u540e\u7eed\u914d\u7f6e\u6b65\u9aa4\uff0c\u5305\u62ec\u66f4\u65b0\u7cfb\u7edf\u548c\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6\u3002\u9996\u5148\u6307\u5bfc\u5c06\u8f6f\u4ef6\u6e90\u66ff\u6362\u4e3a\u963f\u91cc\u6e90\u4ee5\u63d0\u5347\u4e0b\u8f7d\u901f\u5ea6\uff0c\u7136\u540e\u901a\u8fc7apt\u547d\u4ee4\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u5305\u3002\u63a5\u7740\u8be6\u7ec6\u4ecb\u7ecd\u4e867\u4e2a\u670d\u52a1\u5668\u5e38\u7528\u5de5\u5177\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u7528\u6cd5\uff1agit\u7248\u672c\u63a7\u5236\u3001vim\u6587\u672c\u7f16\u8f91\u3001wget\u4e0b\u8f7d\u5de5\u5177\u3001curl\u7f51\u7edc\u8bf7\u6c42\u3001tmux\u7ec8\u7aef\u590d\u7528\u3001htop\u8fdb\u7a0b\u76d1\u63a7\u548cjq JSON\u5904\u7406\u3002\u8fd9\u4e9b\u5de5\u5177\u6db5\u76d6\u4e86\u7248\u672c\u7ba1\u7406\u3001\u6587\u4ef6\u7f16\u8f91\u3001\u7f51\u7edc\u64cd\u4f5c\u3001\u7cfb\u7edf\u76d1\u63a7\u7b49\u670d\u52a1\u5668\u65e5\u5e38\u4f7f\u7528\u573a\u666f\u3002\u6587\u7ae0\u8fd8\u9884\u544a\u4e86\u540e\u7eed\u5c06\u53d1\u5e03\u7684\u670d\u52a1\u5668\u914d\u7f6e\u7cfb\u5217\u6559\u7a0b\uff0c\u5305\u62ecNodeJS\u73af\u5883\u642d\u5efa\u3001Nginx\u914d\u7f6e\u7b49\u5185\u5bb9\u3002\u6240\u6709\u64cd\u4f5c\u5747","og_url":"https:\/\/www.wsisp.com\/helps\/41780.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-04T07:20:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250604072038-683ff3c63ade6.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\/41780.html","url":"https:\/\/www.wsisp.com\/helps\/41780.html","name":"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-04T07:20:40+00:00","dateModified":"2025-06-04T07:20:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/41780.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/41780.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/41780.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u6b65\u4e00\u6b65\u914d\u7f6e Ubuntu Server \u7684 NodeJS \u670d\u52a1\u5668\u8be6\u7ec6\u5b9e\u5f55\u2014\u20143. \u670d\u52a1\u5668\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u53ca\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5"}]},{"@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\/41780","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=41780"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41780\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/41777"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=41780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=41780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=41780"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=41780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}