1 . Linux 下 查看
netstat -anp|grep 端口号
例如输入
netstat -anp|grep 8080
停止进程号 kill -9 进程号
kill -9 8866
2. window下
netstat -ano|findstr 端口号
停止进程号
taskkill /pid 进程id -f
1 . Linux 下 查看
netstat -anp|grep 端口号
例如输入
netstat -anp|grep 8080
停止进程号 kill -9 进程号
kill -9 8866
2. window下
netstat -ano|findstr 端口号
停止进程号
taskkill /pid 进程id -f