库房摄像头直播后台
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.
 
 
 
 

23 lines
564 B

let path = require('path');
let Service = require('node-windows').Service;
// Create a new service object
let svc = new Service({
name:'node windows server test', //名称
description: 'The socket.io nodejs server test ',//描述
script: './bin/www',//node执行入口
execPath:'C:\\Program Files\\nodejs\\node.exe',
nodeOptions: [
'--harmony',
'--max_old_space_size=4096'
]
});
// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install',function(){
svc.start();
});
svc.install();