配置完毕后启动 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