当前位置: 首页 > OpenSource > 正文

nginx 的debug模式

编译的时候添加:

–with-debug

 nginx.conf中的配置:

error_log  logs/error.log debug;

#master_process  off;
daemon          off;
daemon off;            

说明:
master_process  on; 
Do not use the “daemon” and “master_process” directives in a production mode, these options are mainly used for development only. You can use  daemon off  safely in production mode with runit / daemontools however you can’t do a graceful upgrade.  master_process off  should never be used in production.

生产环境中不要使用”daemon”和”master_process”指令,这些选项仅用于开发调试。

本文固定链接: https://2hei.net/nginx_debug.html | 二黑的站点

该日志由 2hei 于2009年08月09日发表在 OpenSource 分类下,
原创文章转载请注明: nginx 的debug模式 | 二黑的站点
关键字:

报歉!评论已关闭.