我在一个由监督管理的码头集装箱里运行nginx和unicorn。
所以,监督是码头的命令。反过来,它又繁殖了尼吉克斯和独角兽。独角兽通过套接字和nginx交谈。nginx在80端口监听。
我也有一个登录口码头容器运行,基本上管道所有码头日志到书面线索,通过监听docker.sock。
问题是,nginx不断地向日志中吐出数以千计的普通条目:
172.31.45.231 - - [25/May/2016:05:53:33 +0000] "GET / HTTP/1.0" 200 12961 0.0090
我在试着让它失效。
到目前为止我已经:
access_logs /dev/null;和vhost文件中设置nginx.conf。全面监督中心:
[supervisord]
nodaemon=true
loglevel=warn
[program:unicorn]
command=bundle exec unicorn -c /railsapp/config/unicorn.rb
process_name=%(program_name)s_%(process_num)02d
numprocs=1
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
redirect_stderr=true
[program:nginx]
command=bash -c "/usr/sbin/nginx -c /etc/nginx/nginx.conf"
stdout_logfile=/dev/null
stderr_logfile=/dev/null发布于 2016-05-25 07:35:25
https://stackoverflow.com/questions/37429017
复制相似问题