CDH6.3.X安装
基本设置
1.修改网卡信息
cd /etc/sysconfig/network-scripts
vim ifcfg-enXXXXXXX
a.修改
BOOTPROTO=static
ONBOOT=yes
b.在结尾增加
IPADDR=192.168.1.101
GATEWAY=192.168.247.2
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=114.114.114.114
修改其他2台主机IP分别为
192.168.1.102
192.168.1.103
- 重启网卡
service network restart
HOSTS相关操作
hostnamectl set-hostname bigdatacdh1
hostnamectl set-hostname bigdatacdh2
hostnamectl set-hostname bigdatacdh3
vim /etc/hosts
192.168.1.101 bigdatacdh1
192.168.1.102 bigdatacdh2
192.168.1.103 bigdatacdh3
关闭防火墙
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl status firewalld.service
systemctl disable firewalld.service
vim /etc/selinux/config
将SELINUX改为disabled
ssh免密登陆
ssh-keygen -t rsa
cd ~/.ssh
ll
cat id_rsa.pub >> authorized_keys
ssh-copy-id bigdatacdh1 在bigdatacdh2节点执行
ssh-copy-id bigdatacdh1 在bigdatacdh3节点执行
将1节点上的authorized_keys复制到2,3节点上
scp -r authorized_keys bigdatacdh2:~/.ssh
scp -r authorized_keys bigdatacdh3:~/.ssh
预设
yum -y install lrzsz
yum -y install psmisc
yum -y install vim*
yum -y install httpd
yum -y install ntp
yum -y install net-tools
yum install chrony -y
XSHELL可操作部分
禁用透明页(所有节点执行)
查看
cat /proc/sys/vm/swappiness
sysctl vm.swappiness&#