1)netstat -Aan | grep 3306 最前面有一个地址,类似:f10000f301188b58 tcp4 2)用rmsock f10000f301188b58 tcpcb 如果占用了,会返回进程号。 3)kill那个进程 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/81377/showart_1287229.html
1. netstat -Aan | grep -i listen | grep 比如查找25999被哪个占用 # netstat -Aan | grep -i listen | grep 25999 71107de4 tcp4 0 0 *.25999 *.* LISTEN 2. 使用rmsock tcpcb ,别被这个命令吓倒,其实不是删除sock的。参数就是第一步返回的那个十六进制地址。 # rmsock 71107de4 tcpcb The socket 0x71107c00 is being held by proccess 49546 (sms_access_agent). 括弧写的就是进...
1. netstat -Aan | grep -i listen | grep 比如查找25999被哪个占用 # netstat -Aan | grep -i listen | grep 25999 71107de4 tcp4 0 0 *.25999 *.* LISTEN 2. 使用rmsock tcpcb ,别被这个命令吓倒,其实不是删除sock的。参数就是第一步返回的那个十六进制地址。 # rmsock 71107de4 tcpcb The socket 0x71107c00 is being held by proccess 49546 (sms_access_agent). 括弧写的就是进...
1)netstat -Aan | grep 3306 最前面有一个地址,类似:f10000f301188b58 tcp4 2)用rmsock f10000f301188b58 tcpcb 如果占用了,会返回进程号。 3)kill那个进程 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10500/showart_1134489.html
bash-3.00# ps v 30976 PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND 30976 - A 1798:03 440 23676 23708 xx 22 32 2.8 0.0 JavaServe 这里看到的是 23676 ,请问单位是什么???? 而 bash-3.00# svmon -P 30976 ------------------------------------------------------------------------------- Pid Command Inuse Pin Pgsp Virtual 64-bit M...