当前位置:网站首页>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
边栏推荐
猜你喜欢

Announcement | FISCO bcos v3.0-rc4 is released, and the new Max version can support massive transactions on the chain

arc-gis的基本使用2

csdn空格用什么表示

Vertical search

Voice chat app source code - Nath live broadcast system source code

volatile 靠的是MESI协议解决可见性问题?(下)

OFDM 十六讲- OFDM

NTT(快速数论变换)多项式求逆 一千五百字解析

2022 chemical automation control instrument operation certificate test question simulation test platform operation

Basic use of ArcGIS 4
随机推荐
antUI中a-modal 拖拽功能制作
838. Heap sorting
Sending and receiving of C serialport
微信小程序学习笔记2
"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"
PHP和MySQL获取week值不一致的处理
Paper notes: knowledge map kgat (unfinished temporary storage)
MySQL 强化知识点
I'm faded
Local cache
"No input file specified" problem handling
Simple message mechanism of unity
【Mysql】认识Mysql重要架构(一)
什么是异步操作
Basic use of ArcGIS 4
The problem of the sum of leetcode three numbers
What is the difference between NFT and digital collections?
[MySQL] detailed explanation of redo log, undo log and binlog (4)
2022 Shanghai safety officer C certificate examination questions and mock examination
【线上死锁分析】由index_merge引发的死锁事件