0%
使用虚拟机搭建集群时的必要工作。
- 修改网卡
- 关闭防火墙
- 修改主机名、映射关系
- 安装JDK,配置环境变量
- 时间同步、集群通信、免密
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet UUID=81c06473-0e58-4a5a-b4c4-35a2a853ab04 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.8.100 NETMASK=255.255.255.0 GATEWAY=192.168.8.1 DNS1=192.168.8.1 DNS2=114.114.114.114
service network restart
service iptables stop chkconfig iptables off
vi /etc/sysconfig/network
vi /etc/hosts
vi /etc/profile export JAVA_HOME=/root/app/jdk1.8.0_191 export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
yum install ntpdate -y ntpdate 0.asia.pool.ntp.org
yum install openssh-clients
ssh登陆,scp发送文件 scp -r /etc/hosts bigdata-03:/etc/
ssh-keygen -t rsa ssh-copy-id -i /root/.ssh/id_rsa.pub bigdata-03
|