文章目录
一 关闭防火墙 配置本机hosts 文件
1 关闭防火墙
ps:目前云服务器查看防火墙 —默认看到基本都是没有启动,或者not found …
这个可以忽略 不过也要看一下
下面是red hat/CentOs7关闭防火墙的命令!
1:查看防火状态
systemctl status firewalld
service iptables status
2:暂时关闭防火墙
systemctl stop firewalld
service iptables stop
3:永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
4:重启防火墙
systemctl enable firewalld
service iptables restart
5:永久关闭后重启
chkconfig iptables on
2 配置本地host 文件
公网ip1 hadoop1xx
公网ip2 hadoop1xx
公网ip3 hadoop1xx
二本地能否ping 通, 端口排查
先从能访问 50070 开始排查
发现 可以ping 通 这个50070 对应ip ,但是telnet ip 50070 不通
登入服务器(我这里是腾旭云服务器—在控制台 端口都是一键放通的)
查看配置网卡—网卡这里我没有配置
需要配置网卡