0


【Hadoop伪分布式安装】之配置CentOS

文章目录

配置CentOS

前言

  1. 安装软件果然是从入门到放弃。。耐心哈,耐心。。
  2. 因为是上坡路所以难走,勇者面前无险路

一、修改主机名

  1. [eva@bogon ~]$ su #切换root模式
  2. 密码:
  3. [root@bogon eva]# hostname hadoop #将用户名改为hadoop[root@bogon eva]# su #切换用户名[root@hadoop eva]# hostnamectl set-hostname hadoop0 #将用户名改为hadoop0[root@hadoop eva]# hostname #查看hostname
  4. hadoop0

在这里插入图片描述

二、配置hosts文件

1. vi编辑/etc/hosts

  1. [root@hadoop eva]# vi /etc/hosts

在这里插入图片描述
注意字母,不然就像上图一样。。。最后一遍才成功

2. 在文件末尾添加一行

  1. 192.168.164.149 hadoop0

![在这里插入图片描述](https://img-blog.csdnimg.cn/fc07b71b2966461eb77a9f90cb506ab8.png

三、关闭防火墙

1. 开启防火墙

  1. [root@hadoop eva]# systemctl start firewalld.service #开启防火墙[root@hadoop eva]# systemctl restart firewalld.service #重启防火墙[root@hadoop eva]# systemctl stop firewalld.service #关闭防火墙

在这里插入图片描述

2. 查看防火墙

  1. [root@hadoop eva]# systemctl status firewalld.service #查看防火墙

在这里插入图片描述

3. 关闭防火墙

  1. [root@hadoop eva]# systemctl stop firewalld.service #关闭防火墙[root@hadoop eva]# systemctl disable firewalld.service #开机禁用防火墙

在这里插入图片描述

四、禁用selinux

  1. [root@hadoop eva]# vi /etc/selinux/config

1. 修改/etc/selinux/config文件

在这里插入图片描述

2. 将最后一行修改为disabled

在这里插入图片描述
在这里插入图片描述

标签: hadoop centos 分布式

本文转载自: https://blog.csdn.net/weixin_46555054/article/details/124652802
版权归原作者 陌小柠 所有, 如有侵权,请联系我们删除。

“【Hadoop伪分布式安装】之配置CentOS”的评论:

还没有评论