查看ip地址:
CentOS7中使用ip addr命令查看,也可以安装ifconfig:yum install net-tools.x86_64
CentOS6中使用ifconfig命令查看
关闭防火墙:
CentOS7中:
firewall-cmd --state #查看防火墙状态
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
CentOS6中:
service iptable status #查看防火墙状态
servcie iptables stop #临时关闭防火墙
chkconfig iptables off #永久关闭防火墙