服务器防火墙端口那些事
ping 命令
ping www.baidu.com
服务器ping 百度,看看与外网是否通

telnet 命令
测试端口
telnet ip 端口 (中间是空格)
查看端口监听 netstat
netstat -pant | grep 9200

windows:netstat -ano | findstr 端口号
查看端口监听
lsof -i:xxxx

centos6下无法使用lsof命令"-bash: lsof: command not found"
yum install lsof
安装
=========== 防火墙 =============
centos 7
查看防火墙状态
firewall-cmd --state
systemctl stop firewalld.service

浙公网安备 33010602011771号