Hadoop伪分布式安装
1.安装centos
30G空间
/boot 300M
swap 2048
/ Fill
2.修改IP地址
vi /etc/sysconfig/network-scripts/ifcfg-eno16777736
DEVICE=eno16777736
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.121.150
GATEWAY=192.168.121.2
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=114.114.114.114
systemctl restart network
ping www.baidu.com
ping 本机ip
3.修改主机映射
hostnamectl set-hostname single
vi /etc/sysconfig/network
HOSTNAME=single
reboot
4.修改IP映射
vi /etc/hosts
#添加 ip 名字
192.168.121.150 single
5.查看防火墙和selinux,确认关闭
systemctl status firewalld
#输出如下
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
sestatus
#输入如下
SELinux status: disabled