一、Windows自启动配置:安装依赖(全局)

npm install pm2-windows-startup -g
pm2-startup install

二、指定服务自启动

pm2 list
pm2 save