1、用netstat查看: 2、lsof -i :port,使用lsof -i :port就能看见所指定端口运行的程序,同时还有当前连接。 3、nmap 端口扫描 4、文件/etc/services显示的各个服务的端口号: