当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
arcgis的基本使用4
[MySQL] detailed explanation of redo log, undo log and binlog (4)
2B and 2C
Apple generated and verified tokens for PHP
大二上第三周学习笔记
Mysql事务
STM32+MFRC522完成IC卡号读取、密码修改、数据读写
CF1481C Fence Painting
2022 tea artist (intermediate) special operation certificate examination question bank simulated examination platform operation
"No input file specified" problem handling
Sending and receiving of C serialport
解决“NOTE: One or more layouts are missing the layout_width or layout_height attributes.”
Codeworks DP collection
语音聊天app源码——钠斯直播系统源码
2022 chemical automation control instrument operation certificate test question simulation test platform operation
Where are the laravel framework log files stored? How to use it?
JVM command induction
TabbarController的封装
PHP和MySQL获取week值不一致的处理
Solve "note: one or more layouts are missing the layout_width or layout_height attributes."









