1、查看服务器所有被占用端口
netstat -ant
2、验证某个端口号是否被占用
netstat -tunlp | grep 端口号
netstat -tunlp | grep 8080
3、查看所有监听端口号
netstat -lntp
1、查看服务器所有被占用端口
netstat -ant
2、验证某个端口号是否被占用
netstat -tunlp | grep 端口号
netstat -tunlp | grep 8080
3、查看所有监听端口号
netstat -lntp