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

最新文章

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

热门文章

  1. div 元素内容超出可通过鼠标滚轮实现横向滚动
  2. pytorch学习笔记三之神经网络
  3. h5项目自适应字体和宽高。用rem
  4. ROS librviz库
  5. js中各种事件监听
  6. 阿里云服务器ECS(Centos8)下安装和配置python3.8
  7. R Works with Google Earth Engine - Installation 【rgee - 安装问题解决集锦】
  8. java开发细节
  9. chatGPT搭建之旅
  10. Linux系统实时监控