NodeJs 加入Windows开机自启动服务

  首先需要到http://nssm.cc/download/?page=download 下载 nssm,下下来之后是压缩包形式的解压之后,在命令行模式下进入到nssm的目录。之后运行:nssm install NodeJS " ode.exe" "server.js" net start NodeJS。

  nssm install NodeJS(安装后的服务名称) "(node.exe安装的地址) ode.exe" "(要启动的JS文件)server.js"

  net start NodeJS(安装后的服务名称)

原文地址:https://www.cnblogs.com/henuadtc/p/3996362.html