80 Star 245 Fork 107

老牛 / cmpage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nw_install.js 521 Bytes
一键复制 编辑 原始数据 按行查看 历史
defans 提交于 2021-08-22 10:04 . 安装Windows服务
let path = require('path');
let Service = require('node-windows').Service;
// Create a new service object
let svc = new Service({
name:'CmpageWebService', //名称
description: 'Cmpage Web Windows Service ',//描述
script: path.resolve('./development.js'),//node执行入口
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();
NodeJS
1
https://gitee.com/defans/cmpage.git
git@gitee.com:defans/cmpage.git
defans
cmpage
cmpage
master

搜索帮助