安装netstat查看端口

1、执行命令

yum install net-tools

2、查看端口

[root@localhost grafana-6.7.0]# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp   266812      0 192.168.10.106:43868    151.101.42.217:443      ESTABLISHED
tcp        0     52 192.168.10.106:22       192.168.10.249:49674    ESTABLISHED
tcp6       0      0 ::1:25                  :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN  

 

posted on 2020-03-25 15:18  JAVA-ROAD  阅读(374)  评论(0)    收藏  举报

导航