从零搭建hadoop集群之系统管理操作
2024-09-08 18:59:35
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
最新文章
- 认识W3C标准盒子模型,理解外边距叠加
- Android开发者的Kotlin:书
- adb 无法启动问题
- lamp安装
- 理解RESTful架构(转载)
- HDU 2669 Romantic(扩展欧几里德, 数学题)
- css ie7中overflow:hidden失效问题及解决方法
- tomcat 配置虚拟路径
- 大数据架构师基础:hadoop家族,Cloudera产品系列等各种技术
- shell脚本中>;/dev/null的含义
- 在不同平台上CocosDenshion所支持的音频格式
- 用C#实现网络爬虫(一)
- 在 SQL Server 2012 附加 Adventure Works 範例資料庫
- Shader之ECEF——LLH
- 读书共享 Primer Plus C-part11
- MySQL Replication--GTID基础
- C# WinForm 关于窗体最大化时的是否全屏效果与是否遮盖任务栏
- BZOJ1768 : [Ceoi2009]logs
- Tomcat访问(access)日志配置
- 存储过程打印超过8000的VARCHAR字符的问题