ubuntu查看進程占用端口的方法:
1.登錄ubuntu系統進入終端命令行模式。
2.輸入命令切換到root用戶。
sudo su
3.再輸入以下查看進程占用端口。
netstat -anp|grep pid 查看進程占用端口號