当前位置:网站首页>nodejs服务后台执行(forever)
nodejs服务后台执行(forever)
2022-07-26 09:23:00 【为天空着色】
用nodejs创建一个服务器,当用户断开客户链接,服务也就停止了。
网上说用forever管理比较好,记录下使用:
1、安装
#npm install forever -g
2、启动
#forever start index.js
3、查看列表
#forever list
4、停止
#forever stop pid
5、输出日志和错误
#forever start -l forever.log -o out.log -e err.log index.js
边栏推荐
- 【Mysql】一条SQL语句是怎么执行的(二)
- "No input file specified" problem handling
- 【Flutter -- 布局】Align、Center、Padding 使用详解
- Exception handling mechanism II
- The essence of attack and defense strategy behind the noun of network security
- Li Mu D2L (IV) -- softmax regression
- Sending and receiving of C serialport
- Object type collections are de duplicated according to the value of an attribute
- 选择器的使用
- Use of off heap memory
猜你喜欢
Under a directory of ext3 file system, subfolders cannot be created, but files can be created
Use of off heap memory
Exception handling mechanism II
【Mysql】认识Mysql重要架构(一)
[shutter -- layout] detailed explanation of the use of align, center and padding
NTT(快速数论变换)多项式求逆 一千五百字解析
神经网络与深度学习-6- 支持向量机1 -PyTorch
【Mysql】redo log,undo log 和binlog详解(四)
[MySQL] detailed explanation of redo log, undo log and binlog (4)
JS output diamond on the console
随机推荐
Codeworks DP collection
Pat grade a a1076 forwards on Weibo
I'm faded
Innovus is stuck, prompting x error:
Canal 的学习笔记
Unity topdown character movement control
Go intelligent robot alpha dog, alpha dog robot go
Sending and receiving of C serialport
JS - DataTables control on the number of displays per page
What is the difference between NFT and digital collections?
csdn空格用什么表示
原根与NTT 五千字详解
多项式开根
Simple message mechanism of unity
微信小程序学习笔记1
JVM command induction
What is asynchronous operation
JVM触发minor gc的条件
Basic use of ArcGIS 1
什么是异步操作