linux下解除端口占用的方法

查看占用中的端口
netstat -tln|grep 3306

查看端口属于哪个程序,端口被哪个进程占用
lsof -i :3306

杀掉占用端口的进程
kill -9 进程id

你可能感兴趣的:(linux下解除端口占用的方法)