| 
 
| 
| 
| | « | October 2025 | » |  | 日 | 一 | 二 | 三 | 四 | 五 | 六 |  |  |  |  | 1 | 2 | 3 | 4 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |  | |  | 
 |  公告
 |  
| 戒除浮躁,读好书,交益友 |  
 
 
 
 
 
 
| Blog信息 |  
| blog名称:邢红瑞的blog日志总数:523
 评论数量:1142
 留言数量:0
 访问次数:9729441
 建立时间:2004年12月20日
 |   
 
 |  | 
 
|  [linux]如何调试nginx 原创空间,  网上资源,  软件技术,  电脑与网络
 邢红瑞 发表于 2011/11/1 17:36:59  |  
| 
| 自己添加的nginx模块难免会出现错误,所以调试就势在必行。
直接运行gdb nginx 会出现 No symbol table info available。
编译的时候 加入CFLAGS="-g -O0"  ./configure --prefix=/usr/local/server/nginx     --with-cc-opt="-I /usr/include/pcre -I /usr/include/openssl" --with-debug    --with-http_stub_status_module       --with-http_ssl_module --with-http_realip_module --with-http_ssl_module --with-http_perl_module --with-http_stub_status_module
然后 make 
make install |  
 |  
 
 
 
 |