查看端口占用
$: netstat -anp | grep 8888 tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN 13404/python3 tcp 0 1 172.17.0.10:34036 115.42.35.84:8888 SYN_SENT 14586/python3
强制杀掉进程:通过pid
$: kill -9 13404 $: kill -9 14586 $: netstat -anp | grep 8888 $:
查看端口占用
$: netstat -anp | grep 8888 tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN 13404/python3 tcp 0 1 172.17.0.10:34036 115.42.35.84:8888 SYN_SENT 14586/python3
强制杀掉进程:通过pid
$: kill -9 13404 $: kill -9 14586 $: netstat -anp | grep 8888 $:
来源:https://www.cnblogs.com/yehuisir/p/11796989.html