多应用+插件架构,代码干净,支持一键云编译,码云点赞13K star,4.8-4.12 预售价格198元 广告
# 操作系统 [TOC] 下面是本次大数据环境操作系统的一些配置记录。 安装就省略了,大家有需要的,在评论留言,后面可以做一个教程。 ## 版本 centos 7.6 mini 安装 ``` [root@bd00 ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@bd00 ~]# ``` ## 常用软件 ``` yum install vim yum -y install wget yum -y install net-tools yum -y install lsof yum -y install openssh-clients ``` ## 调整自启动权限 ~~~ chmod +x /etc/rc.d/rc.local ~~~ ## 密码约束 1. 普通用户和用户名相同 2. root用户BD_1024 ## 集群 修改主机名 ~~~ [root@centos7 ~]$ hostnamectl set-hostname bd01 # 使用这个命令会立即生效且重启也生效 [root@centos7 ~]$ hostname # 查看下 centos77.magedu.com [root@centos7 ~]$ vim /etc/hosts # 编辑下hosts文件, 给127.0.0.1添加hostname [root@centos7 ~]$ cat /etc/hosts # 检查 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 centos77.magedu.com ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ~~~ >下面这组是搭建的时候用的桥接IP,可以忽略 bd00 192.168.31.200 bd01 192.168.31.201 bd02 192.168.31.202 ## 主机名路由 修改/etc/hosts添加如下内容,并且修改其它与之有冲突的路由 ``` 192.168.159.100 bd00 192.168.159.101 bd01 192.168.159.102 bd02 ``` ## 关闭防火墙 > 请查看附录