1 Star 0 Fork 112

devin.gong/cmpage

forked from 老牛/cmpage 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nw_install.js 521 Bytes
一键复制 编辑 原始数据 按行查看 历史
defans 提交于 2021-08-22 10:04 +08:00 . 安装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();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/gdcx/cmpage.git
git@gitee.com:gdcx/cmpage.git
gdcx
cmpage
cmpage
master

搜索帮助