添加nginx模块时如何进行调试
时间:2014-06-28 02:21 来源:linux.it.net.cn 作者:IT网
自己添加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
(责任编辑:IT)
自己添加nginx模块时难免会出现错误,因此需要做好必要的调试工作。
编译时 加入 CFLAGS="-g -O0"
然后: (责任编辑:IT) |