调试lighttpd

27 篇文章 0 订阅


配置完毕后启动 lighttpd:

lighttpd -f /etc/lighttpd.conf

(如果不想运行为后台进程,用如下命令:
lighttpd -D -f /etc/lighttpd.conf
便于调试)

要停止 lighttpd 进程,用命令
ps -ef|grep lighttpd
查看到 pid
然后 
kill -9 [pid]
即可

The first thing you have to remember is that the mod_art_server.so is a dynamic library and when you run lighttpd it is not loaded immediately (which means itsdebug symbols will not be available either).

So what you want to do is this:

· Copy all source files (/common /plugin) to the SPX (I usually create a directory src under the /export/test directory)

· Stop sysmon (from engineering mode)

· Kill the lightppd process

· Switch to the /ca/bin directory

· Start gdb – “gdb lighttpd”

· Point to the directory where you copied the file (in my example this will be “directory /export/test/src”

· Start the lighttpd – run –D –f art_server.conf –m /ca/lib

· After it started press ctrl+C

· Now you can put breakpoints and trace the software


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值