查看端口占用情况
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/
本文详细介绍了如何使用 netstat 命令检查端口占用情况,包括数据库监听端口,并提供了在 Linux 和 AIX 系统中终止占用特定端口进程的方法。
1万+

被折叠的 条评论
为什么被折叠?



