Centos查看端口占用情况命令,比如查看80端口占用情况使用如下命令:
lsof -i tcp:80
列出所有端口
netstat -ntlp
netstat -ntlp
Command 'netstat' not found, but can be installed with:
sudo apt install net-tools
查看进程的详细信息
ps 1777
Centos查看端口占用情况命令,比如查看80端口占用情况使用如下命令:
lsof -i tcp:80
列出所有端口
netstat -ntlp
netstat -ntlp
Command 'netstat' not found, but can be installed with:
sudo apt install net-tools
查看进程的详细信息
ps 1777