{"id":290402,"date":"2024-03-17T21:31:49","date_gmt":"2024-03-17T13:31:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/nazgfyvdsfyn.html"},"modified":"2024-03-17T21:31:49","modified_gmt":"2024-03-17T13:31:49","slug":"nazgfyvdsfyn","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/nazgfyvdsfyn.html","title":{"rendered":"Node.js\u5b89\u88c5\uff1a\u5b98\u65b9\u6e90VS\u7b2c\u4e09\u65b9\u6e90\uff0c\u54ea\u4e2a\u66f4\u9999\uff1f"},"content":{"rendered":"
\u672c\u6587\u5c31\u4f7f\u7528YUM\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u8fdb\u884cNode.js\u52a0\u8f7d\u6240\u6d89\u53ca\u7684\u4e24\u4e2a\u9014\u5f84\uff0c\u5305\u62ec\u76f4\u63a5\u8fde\u63a5\u5b98\u65b9\u670d\u52a1\u5668\u548c\u501f\u52a9\u7b2c\u4e09\u65b9\u8f6c\u53d1\u670d\u52a1\u5668linux\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u5c55\u5f00\u4e86\u6df1\u5ea6\u63a2\u8ba8linux yum\u5b89\u88c5<\/a>nodejs<\/strong>\uff0c\u540c\u65f6\u6bd4\u8f83\u4e86\u5b83\u4eec\u5404\u81ea\u7684\u4f18\u70b9\u4e0e\u4e0d\u8db3\u4e4b\u5904\u3002<\/p>\n \u4e00\u3001\u4f7f\u7528\u5b98\u65b9\u6e90\u5b89\u88c5node.js<\/b><\/p>\n \u5fc5\u987b\u5148\u5b89\u88c5EPEL\u5e93\u53caNode.js\u8f6f\u4ef6\u5305\uff0c\u7136\u540e\u8fdb\u884c\u9002\u5f53\u914d\u7f6e\u4e0e\u68c0\u67e5\u3002<\/p>\n -\u4eae\u70b9:\u6302\u63a5\u5b98\u65b9\u6700\u65b0\u6cd5\u6e90\u53d1\u5e03\u4fe1\u606f\uff0cNode.js\u65b0\u7248\u7a33\u5b9a\u9ad8\u6548\u8fd0\u884c\u4fdd\u969c\u3002<\/p>\n -\u7f3a\u70b9\uff1a\u5b89\u88c5\u8fc7\u7a0b\u7a0d\u663e\u7e41\u7410\uff0c\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u6e90\u548c\u9a8c\u8bc1\u5bc6\u94a5\u3002<\/p>\n \u4e8c\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u6e90\u5b89\u88c5node.js<\/b><\/p>\n \u5b9e\u65bd\u6307\u5357\uff1a\u501f\u52a9nvm\uff08Node Version Manager\uff09\u5b9e\u73b0\u7cbe\u786e\u7ba1\u7406Node.js\u7248\u672c\uff1b\u5176\u6b21\uff0c\u4ece\u7b2c\u4e09\u65b9\u8d44\u6e90\u63d0\u53d6\u60a8\u6240\u9700\u7684\u5bf9\u5e94\u7248\u672c\u3002<\/p>\n -\u7279\u6027\uff1aNVM\u63d0\u4f9b\u9ad8\u6548\u4fbf\u6377\u7684\u7248\u672c\u914d\u7f6e\u7ba1\u7406\u670d\u52a1\uff0c\u652f\u6301\u5feb\u901f\u5207\u6362\u81f3\u6240\u9700\u7684Node.js\u7248\u672c\u3002<\/p>\n -\u7f3a\u70b9\uff1a\u7b2c\u4e09\u65b9\u6e90\u53ef\u80fd\u66f4\u65b0\u4e0d\u53ca\u65f6\uff0c\u5b58\u5728\u4e00\u5b9a\u7684\u98ce\u9669\u3002<\/p>\n \u4e09\u3001\u5bf9\u6bd4\u4e0e\u603b\u7ed3<\/b><\/p>\n -\u5b89\u88c5\u901f\u5ea6\uff1a\u5b98\u65b9\u6e90\u76f8\u5bf9\u8f83\u6162\uff0c\u800c\u7b2c\u4e09\u65b9\u6e90\u4e0b\u8f7d\u901f\u5ea6\u8f83\u5feb\u3002<\/p>\n \u2014\u2014\u65f6\u523b\u5b88\u5019\u6700\u65b0\u7248\u672c\uff1a\u5b98\u7f51\u5b9e\u65f6\u53d1\u5e03Node.js\u65b0\u7248\u52a8\u6001\uff0c\u52a9\u4f60\u7d27\u968f\u524d\u6cbf\u79d1\u6280\u53d1\u5c55\u6b65\u4f10\uff1b\u6709\u522b\u4e8e\u5e02\u573a\u4e0a\u4f17\u591a\u7b2c\u4e09\u65b9\uff0c\u6211\u4eec\u514d\u53bb\u56e0\u4fe1\u606f\u5ef6\u8bef\u5e26\u6765\u7684\u56f0\u6270\u3002<\/p>\n <\/p>\n -\u7a33\u56fa\u6027\u4e0e\u5b89\u5168\u6027\uff1a\u5c3d\u7ba1\u4f18\u5148\u8003\u91cf\u5b98\u65b9\u8d44\u6e90\u7684\u53ef\u9760\u6027\uff0c\u4f46\u7b2c\u4e09\u65b9\u4fe1\u606f\u6765\u6e90\u4e5f\u9700\u8b66\u60d5\u5176\u6f5c\u5728\u5a01\u80c1\u3002<\/p>\n \u6df1\u5316\u5256\u6790\uff1a\u76f8\u8f83\u4e8e\u7e41\u7410\u8d39\u65f6\u7684\u5b98\u65b9\u8d44\u6e90\u914d\u7f6e\uff0c\u7531NVM\u6280\u672f\u52a9\u529b\u7684\u7b2c\u4e09\u65b9\u8d44\u6e90\u5728\u6548\u80fd\u65b9\u9762\u5177\u6709\u5de8\u5927\u4f18\u52bf\u3002<\/p>\n \u56db\u3001\u5b9e\u4f8b\u5206\u6790<\/b><\/p>\n