Arquivos
hhvm/hphp/doc/debug.linux
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

33 linhas
555 B
Plaintext

<h2>Useful Linux Commands</h2>
1. Who's listening on port 80?
sudo lsof -t -i :80
2. Who's talking to a remote port 11300?
netstat -pal | grep 11300
3. Incoming web requests
ngrep -q "POST|GET"
ngrep -q "POST|GET" | egrep "(POST|GET) /"
4. Incoming and outgoing web traffic
tcpdump "port 80" -X -s 1024
5. Who's blocking port access?
/sbin/iptables -L
/sbin/iptables -F # flush iptables
6. Who's the main www process?
ps -e | grep www
7. Start gdb by process name
gdb --pid=`ps -eo pid,comm | grep www | cut -d' ' -f1`