.修改linux ip
可以命令修改:vim /etc/sysconfig/network-scripts/ifcfg-eth0 最后这参数是不确定的
然后如下 将ONBOOT 改为yes 然后重启 reboot
修改主机名
hostname # 查看
vi /etc/sysconfig/network # 编辑network文件修改hostname行(重启生效)
cat /etc/sysconfig/network # 检查修改
NETWORKING=yes
HOSTNAME=centos66.magedu.com
7: hostnamectl set-hostname wozuishuai # 使用这个命令会立即生效且重启也生效
修改主机名与 ip 对应关系
vi /etc/hosts
配置如下
以上操作如有问题,请自行百度
查看防护墙状态
service iptables status
关闭
service iptables stop
查看防火墙开机启动状态
chkconfig iptables --list
关闭开机启动
chkconfig iptables off
我的是Centos7,以下关闭方法是7的
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
下载地址: https://hadoop.apache.org/releases.html
下载完成,传到linux上
解压
tar -zxvf hadoop-2.8.5.tar.gz 直接解压到当前
tar -zxvf hadoop-2.8.5.tar.gz -c /usr/src/java -c 后面接位置 是表示解压到指定位置
解压完,删除压缩包
若嫌文件夹名字太长,可执行
修改好之后进入: