lnmp
lnmp copied to clipboard
将nginx日志配置到/dev/stdout中输出,nginx状态正常,但却不可访问
将 nginx.conf 中的日志配置指向 /dev/stdout error_log /dev/stderr notice; access_log /dev/stdout main;
nginx -t 返回: nginx: the configuration file /usr/local/nginx//conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx//conf/nginx.conf test is successful 但却不可访问
使用 docker logs -f (容器名) 也无日志输出