strace apache2

#ubuntu
ps h –ppid $(cat /var/run/apache2/apache2.pid) | awk ‚{print“-p “ $1}‘ | xargs sudo strace -o strace.txt

oder
strace $(pgrep httpd | sed ’s/^/-p/‘) -o /home/test.txt -f -r -s4096 

#debian
strace $(pgrep apache2 | sed ’s/^/-p/‘) -o /home/test.txt -f -r -s4096

Comments are closed.