wget用法
wget --bind-address='55.200.1.1' http://22.3.32.100 --output-document=/dev/null
wget --bind-address='56.255.255.5' http://23.0.48.1/10k.html -e use_proxy=yes -e http_proxy=10.10.10.10:8080 --delete-after
查看server上耗Memory最高的程序
root@pl25h5v1-0:/opt/quest# ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%mem | head -n 30
PID PPID %MEM %CPU CMD
121362 121357 6.3 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
108051 108046 4.9 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
131789 131784 4.3 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
130754 130749 4.2 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
127653 127648 4.2 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
115852 115847 4.1 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
113857 113852 4.0 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
150910 150905 4.0 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
133729 133724 3.9 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
126423 126418 3.8 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
151993 151988 3.8 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
141904 141899 3.8 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
153625 153620 3.6 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
154598 154593 3.6 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
155575 155570 3.6 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
128711 128706 3.5 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
132760 132755 3.4 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
157120 157115 3.4 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
135118 135113 3.4 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
129779 129774 3.4 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
159012 159007 3.1 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
161255 161250 2.6 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
162896 162891 2.2 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
164014 164009 1.8 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
165023 165018 1.4 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
166036 166031 0.9 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
167122 167117 0.5 0.0 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
79941 79940 0.3 0.6 java -jar remoting.jar -workDir /opt/jenkins-slave -jar-cache /opt/jenkins-slave/remoting/jarCache
9497 1 0.3 0.4 nautilus
root@pl25h5v1-0:/opt/quest# free -g
total used free shared buff/cache available
Mem: 11 11 0 0 0 0
Swap: 11 10 0
#Top 命令也可以查
root@pl25h5v1-0:/opt/quest# top -c -b -o +%MEM | head -n 20 | tail -15
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
150910 root 20 0 1250240 501952 376 S 0.0 4.1 0:48.22 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
133729 root 20 0 1250240 496736 176 S 0.0 4.0 0:56.76 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
141904 root 20 0 1250240 481036 180 S 0.0 3.9 0:49.44 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
151993 root 20 0 1250240 479688 264 S 0.0 3.9 0:40.49 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
153625 root 20 0 627648 462572 184 S 0.0 3.8 0:39.64 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
154598 root 20 0 627648 460172 184 S 0.0 3.7 0:37.62 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
155575 root 20 0 627648 456504 152 S 0.0 3.7 0:31.88 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
157120 root 20 0 627648 435536 172 S 0.0 3.5 0:29.66 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
135118 root 20 0 1250240 435212 164 S 0.0 3.5 0:52.51 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
159012 root 20 0 627648 396804 336 S 0.0 3.2 0:28.32 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
161255 root 20 0 627648 340104 300 S 0.0 2.8 0:22.01 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
162896 root 20 0 316352 291332 184 S 0.0 2.4 0:18.16 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
164014 root 20 0 316352 238652 340 S 0.0 1.9 0:14.33 /bin/sh /opt/quest/libexec/vas/scripts/vas_status.sh
只抓取HTTP GET请求
tcpdump -i any -s 0 -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420'
抓取HTTP GET和200 OK
tcpdump -i any -s 0 -A 'tcp dst port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 or tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504F5354 or tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x48545450 and host 24.0.0.1'