1、查看端口占用,并杀死占用该端口的进程:
netstat -tln
:查看端口占用情况
lsof -i :port
:查看端口被占用的进程id(pid)
kill -s 9 pid
:强制杀死指定进程
2、
ps -aux|grep ***
:查看指定系统进程
1、查看端口占用,并杀死占用该端口的进程:
netstat -tln
:查看端口占用情况
lsof -i :port
:查看端口被占用的进程id(pid)
kill -s 9 pid
:强制杀死指定进程
2、
ps -aux|grep ***
:查看指定系统进程