1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
nuclear_data_spider/pm2.sh

17 lines
307 B
Bash
Raw Normal View History

# npm i -g pm2
# npm install pm2-windows-startup -g
# 启动服务 并设置开机启动
pm2 start index.js --name nuclear-data-spider
pm2 save
pm2-startup install
# # 查看当前运行列表
# pm2 list
# pm2 status
# # 停止
# pm2 stop nuclear-data-spider
# # 重启
# pm2 restart nuclear-data-spider