1. 查看ip是否能访问
ping 192.168.0.1
2. 查看某ip的某端口是否能访问
telnet 192.168.0.1 80
3. 提示 -bash: telnet: command not found,说明没有安装telnet
yum install telnet