查看端口占用情况
netstat -an|grep LIST|grep 15 数据库监听占用情况。
netstat -an|grep 1521 1521为端口号
netstat -an|grep 1521 1521为端口号
使用如下语句kill占用端口的进程
linux下杀掉占用端口的进程
ps -efww|grep appltest|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep appltest|grep -v grep|cut -c 9-15|xargs kill -9
AIX下杀掉占用端口的进程
ps -ef | grep "appltest" | grep -v grep | awk '{print $2}' | xargs kill -9
ps -ef | grep "appltest" | grep -v grep | awk '{print $2}' | xargs kill -9
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-718111/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-718111/