天天看点

linux服务器端口查看的方法

1、用netstat查看:

2、lsof -i :port,使用lsof -i :port就能看见所指定端口运行的程序,同时还有当前连接。 

3、nmap 端口扫描

4、文件/etc/services显示的各个服务的端口号:

继续阅读