CentOS+CDH5.8.2安装全流程记录,全程实测

1、VM安装虚拟机

2、设置虚拟机网络

3、关闭虚拟机防火墙和SElinux:

在安装过程中需要关闭防火墙和SElinux,否则会异常。

关闭防火墙:

[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

关闭SElinux:

使用getenforce命令查看SElinux是否关闭

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled,执行该命令后重启机器生效

[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# vim /etc/selinux/config

4、修改hosts文件

hosts文件主要是把ip和主机名映射起来。

vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.10.101 master
192.168.10.102 slave1

猜你喜欢

转载自www.cnblogs.com/qqflying/p/10321174.html
今日推荐