Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

supervisor配置

[supervisord]
http_port=/var/tmp/supervisor.sock
pidfile=/var/run/supervisord.pid
logfile=/var/log/supervisor/supervisord.log;

[program:golang-server]
directory=/data/wwwroot/
command=/data/wwwroot/golang-server
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/golang-server.log
stderr_logfile=/var/log/supervisor/golang-server.log

日志文件里面没有任何东西。supervisord日志文件也没有;

服务运行状态正常。supervisor进程正常


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
401 views
Welcome To Ask or Share your Answers For Others

1 Answer

你是不是在你的代码里面,通过 logs 把日志给发往其它地方了.如果 logs 默认什么都不配置,就会输出到 stdout 和 stderr 如果你自己做了配置,比如发往 syslog ,日志服务器,kafka,以及文件什么的,那这边可能就没有输出了.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...