z_yu
2 years ago
6 changed files with 1107 additions and 63 deletions
-
3README.md
-
108index.html
-
18lib/RequestManager.js
-
1018package-lock.json
-
2package.json
-
21pm2.config.js
1018
package-lock.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,21 @@ |
|||||
|
module.exports = { |
||||
|
apps: [ |
||||
|
{ |
||||
|
name: 'rtsp-stream-server', // app名称
|
||||
|
script: './bin/www', // 要运行的脚本的路径。
|
||||
|
args: '', // 由传递给脚本的参数组成的字符串或字符串数组。
|
||||
|
output: './log/out.log', |
||||
|
error: './log/error.log', |
||||
|
log: './log/combined.outerr.log', |
||||
|
// merge_logs: true, // 集群的所有实例的日志文件合并
|
||||
|
log_date_format: "YYYY-MM-DD HH:mm Z", |
||||
|
instances: 1, // 进程数 1、数字 2、'max'根据cpu内核数
|
||||
|
max_memory_restart: '1G', // 当内存超过1024M时自动重启
|
||||
|
watching: true, |
||||
|
env_dev: { |
||||
|
"PORT": 3000, |
||||
|
"NODE_ENV": "development" |
||||
|
} |
||||
|
} |
||||
|
], |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue