Home | Mirror | Search |
neo@debian:~/html/temp$ pidof lighttpd 2775 neo@debian:~/html/temp$ pgrep lighttpd 2775 neo@debian:~/html/temp$ pid=`pidof lighttpd` neo@debian:~/html/temp$ echo $pid 2775
# user=`whoami` # pgrep -u $user -f cassandra | xargs kill -9
kill 占用7800連接埠的進程
kill -9 `netstat -nlp | grep '192.168.0.5:7800' | awk -F ' ' '{print $7}' | awk -F '/' '{print $1}'`