{"id":52351,"date":"2024-12-03T09:56:48","date_gmt":"2024-12-03T01:56:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52351\/"},"modified":"2024-12-03T09:56:48","modified_gmt":"2024-12-03T01:56:48","slug":"linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84nodejs","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52351\/","title":{"rendered":"linux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>linux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs<\/h1>\n<p>\u4eca\u65e5\u4e0d\u80af\u57cb\u5934\uff0c\u660e\u65e5\u4f55\u4ee5\u62ac\u5934\uff01\u6bcf\u65e5\u4e00\u53e5\u52aa\u529b\u81ea\u5df1\u7684\u8bdd\u54c8\u54c8~\u54c8\u55bd\uff0c\u4eca\u5929\u6211\u5c06\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300alinux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs\u300b<\/span>\uff0c\u4e3b\u8981\u5185\u5bb9\u662f\u8bb2\u89e3<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u6536\u85cf\u6216\u8005\u6709\u66f4\u597d\u7684\u5efa\u8bae\u5728\u8bc4\u8bba\u63d0\u51fa\uff0c\u6211\u90fd\u4f1a\u8ba4\u771f\u770b\u7684\uff01\u5927\u5bb6\u4e00\u8d77\u8fdb\u6b65\uff0c\u4e00\u8d77\u5b66\u4e60\uff01<\/p>\n<h5>1. \u4e0b\u8f7d\u5bf9\u5e94\u7cfb\u7edf\u67b6\u6784\u7684nodejs\u7248\u672c\uff0c\u53ef\u4ee5\u76f4\u63a5wget\u4e0b\u8f7d\uff0c\u4e5f\u53ef\u4ee5\u4e0b\u8f7d\u518dsftp\u4f20\u5230linux\u4e0a<\/h5>\n<h5>2.\u89e3\u538b<\/h5>\n<pre>tar<\/pre>\n<h5>3.\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfPATH\uff1a<\/h5>\n<pre>vim&nbsp;~\/.bashrc&nbsp;\nexport&nbsp;PATH=\/pkg\/node-v10.8.0-linux-x64\/bin:$PATH\n#&nbsp;\u5173\u95ed\nsource<\/pre>\n<h5>4.\u9a8c\u8bc1\uff1a<\/h5>\n<pre>node&nbsp;-v\nnpm&nbsp;-v<\/pre>\n<h2>Linux\u6709\u54ea\u4e9b\u7248\u672c<\/h2>\n<p>Linux\u7684\u7248\u672c\u6709\uff1aDeepin\u3001UbuntuKylin\u3001Manjaro\u3001LinuxMint\u3001Ubuntu\u7b49\u7248\u672c\u3002\u5176\u4e2dDeepin\u662f\u56fd\u5185\u53d1\u5c55\u6700\u597d\u7684Linux\u53d1\u884c\u7248\u4e4b\u4e00\uff1bUbuntuKylin\u662f\u57fa\u4e8eUbuntu\u7684\u884d\u751f\u53d1\u884c\u7248\uff1bManjaro\u662f\u57fa\u4e8eArch\u7684Linux\u53d1\u884c\u7248\uff1bLinuxMint\u9ed8\u8ba4\u7684Cinnamon\u684c\u9762\u7c7b\u4f3cWindows XP\u7b80\u5355\u6613\u7528\uff1bUbuntu\u5219\u662f\u4ee5\u684c\u9762\u5e94\u7528\u4e3a\u4e3b\u7684Linux\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300alinux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs \u4eca\u65e5\u4e0d\u80af\u57cb\u5934\uff0c\u660e\u65e5\u4f55\u4ee5\u62ac\u5934\uff01\u6bcf\u65e5\u4e00\u53e5\u52aa\u529b\u81ea\u5df1\u7684\u8bdd\u54c8\u54c8~\u54c8\u55bd\uff0c\u4eca\u5929\u6211\u5c06\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7\u300alinux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs\u300b\uff0c\u4e3b\u8981\u5185\u5bb9\u662f\u8bb2\u89e3\u7b49\u7b49\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u6536\u85cf\u6216\u8005\u6709\u66f4\u597d\u7684\u5efa\u8bae\u5728\u8bc4\u8bba\u63d0\u51fa\uff0c\u6211\u90fd\u4f1a\u8ba4\u771f\u770b\u7684\uff01\u5927\u5bb6\u4e00\u8d77\u8fdb\u6b65\uff0c\u4e00\u8d77\u5b66\u4e60\uff01 1. \u4e0b\u8f7d\u5bf9\u5e94\u7cfb\u7edf\u67b6\u6784\u7684nodejs\u7248\u672c\uff0c\u53ef\u4ee5\u76f4\u63a5wget\u4e0b\u8f7d\uff0c\u4e5f\u53ef\u4ee5\u4e0b\u8f7d\u518dsftp\u4f20\u5230linux\u4e0a 2.\u89e3\u538b tar 3.\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfPATH\uff1a vim&nbsp;~\/.bashrc&nbsp; export&nbsp;PATH=\/pkg\/node-v10.8.0-linux-x64\/bin:$PATH #&nbsp;\u5173\u95ed source 4.\u9a8c\u8bc1\uff1a node&nbsp;-v npm&nbsp;-v Linux\u6709\u54ea\u4e9b\u7248\u672c Linux\u7684\u7248\u672c\u6709\uff1aDeepin\u3001UbuntuKylin\u3001Manjaro\u3001LinuxMint\u3001Ubuntu\u7b49\u7248\u672c\u3002\u5176\u4e2dDeepin\u662f\u56fd\u5185\u53d1\u5c55\u6700\u597d\u7684Linux\u53d1\u884c\u7248\u4e4b\u4e00\uff1bUbuntuKylin\u662f\u57fa\u4e8eUbuntu\u7684\u884d\u751f\u53d1\u884c\u7248\uff1bManjaro\u662f\u57fa\u4e8eArch\u7684Linux\u53d1\u884c\u7248\uff1bLinuxMint\u9ed8\u8ba4\u7684Cinnamon\u684c\u9762\u7c7b\u4f3cWindows XP\u7b80\u5355\u6613\u7528\uff1bUbuntu\u5219\u662f\u4ee5\u684c\u9762\u5e94\u7528\u4e3a\u4e3b\u7684Linux\u64cd\u4f5c\u7cfb\u7edf\u3002 \u4eca\u5929\u5173\u4e8e\u300alinux\u4e0b\u5982\u4f55\u5b89\u88c5\u6700\u65b0\u7248\u7684nodejs\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52351","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52351"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52351\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}