一、查看被占端口
netstat -tln | grep 8080
二、安装lsof
查找
yum search lsof
安装
yum install lsof.x86_64
三、查看被占用端口进程
lsof -i:9002
四、杀掉进程
杀掉进程pid
kill -9 20804
一、查看被占端口
netstat -tln | grep 8080
二、安装lsof
查找
yum search lsof
安装
yum install lsof.x86_64
三、查看被占用端口进程
lsof -i:9002
四、杀掉进程
杀掉进程pid
kill -9 20804