ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# nodejs启动失败,nodejs安装流程 **1、在软件管理,安装pm2软件** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1632732156226-4fae8503-947b-45ad-bdca-9e28ab0cfffe.png) **2、添加项目,选择启动文件:/www/wwwroot/douyin\_xunpang/node/server.js,跟启动目录** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1632732203788-b678afcb-7723-4f11-9b0f-4ab42f48bdd8.png) **3、在宝塔左侧的安全菜单,开启一下8003端口** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1631581587069-a44c2d59-0366-463c-b71a-81e8f5b20445.png) **4、进软件商店的PM2,点击项目的模块,重新安装一下 express-http-proxy跟express 模块,安装完这两个项目模块后必须重启项目** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1631581636669-cabbbb23-88ed-4447-b9fe-d0102039c16b.png) ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1631581679211-9e59942b-e56d-43b7-813e-560f8d021eea.png) **5、添加完之后,去终端ssh执行,(防止关机被重置了node的采集项目)** **执行保存:****pm2 save** **最后执行:****pm2 startup** ![](https://cdn.nlark.com/yuque/0/2021/png/2566134/1636991161964-7cf87e7b-941e-4dda-9a66-cd03261f4465.png)