码迷,mamicode.com
首页 > 其他好文 > 详细

从零搭建hadoop集群之系统管理操作

时间:2020-12-17 12:11:05      阅读:2      评论:0      收藏:0      [点我收藏+]

标签:mini   div   roo   hadoop集群   火墙   imu   系统管   vim   hostname   

1. 配置主机名

[root@hadoop01 ~]# hostname    #显示当前主机名

方法一:通过配置文件/etc/hostname (重启后生效)

[root@hadoop01 ~]# vim /etc/hostname

技术图片

 

 

 

方法二:通过命令hostnamectl  set-hostname    新主机名(会自动把主机名改为小写)

[root@hadoop01 ~]# hostnamectl set-hostname hadoop01

2. 添加内网域名映射

[root@hadoop01 ~]# vim /etc/hosts

技术图片

 

 

 3. 关闭防火墙

启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld 
开机禁用  : systemctl disable firewalld
开机启用  : systemctl enable firewalld

4. 关闭SELINUX

[root@hadoop01 ~]# vim /etc/selinux/config


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled #修改为 disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

从零搭建hadoop集群之系统管理操作

标签:mini   div   roo   hadoop集群   火墙   imu   系统管   vim   hostname   

原文地址:https://www.cnblogs.com/qikaipei/p/14122467.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!