lsof -i:8080 //查看8080端口占用
lsof -i //显示所有
lsof -i
apt install lsof //安装lsof
apt install lsof
检查所有端口占用情况: netstat -lntp
netstat -lntp
检查tcp和udp端口占用情况: netstat -anp | grep "443"
netstat -anp | grep "443"