库房摄像头直播后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
502 B

4 years ago
  1. let Service = require('node-windows').Service;
  2. let svc = new Service({
  3. name:'node windows server test', //名称
  4. description: 'The socket.io nodejs server test ',//描述
  5. script: './bin/www',//node执行入口
  6. execPath:'C:\\Program Files\\nodejs\\node.exe',
  7. nodeOptions: [
  8. '--harmony',
  9. '--max_old_space_size=4096'
  10. ]
  11. });
  12. svc.on('uninstall',function(){
  13. console.log('Uninstall complete.');
  14. console.log('The service exists: ',svc.exists);
  15. });
  16. svc.uninstall()