“永远”总是有自己的日志文件吗?我正在运行以下进程:
data: uid command script forever pid id logfile uptime
data: [0] staff-intranet /usr/bin/node staff-intranet-server.js 24123 26733 /root/.forever/logfile.txt 0:0:10:47.967但是,我的配置文件如下所示:
// Staff Intranet Configuration File
{
"uid": "staff-intranet",
"append": true,
"script": "staff-intranet-server.js",
"sourceDir": "/path/to/file/staff-intranet",
"outFile": "/path/to/file/staff-intranet/output.txt",
"errFile": "/path/to/file/staff-intranet/errors.txt",
"logFile": "/path/to/file/staff-intranet/logs.txt"
} 但是日志文件仍然是存储在/root/.forever/logfile.txt中的列表。为什么它没有存储在/path/to/file/staff-intranet/logs.txt中?
发布于 2016-05-25 14:38:07
你可以说:
-p /path/to/file/staff-intranet/ 为所有永久相关的文件(pid文件等)放置基本路径
https://unix.stackexchange.com/questions/283865
复制相似问题