转载请注明原文出处
修改主机名+虚拟机克隆+网络配置+zookeeper+无密钥登陆
vi /etc/sysconfig/network
1.vim /etc/udev/rules.d/70-persistent-net.rules
2.编辑/etc/sysconfig/network-scripts/ifcfg-eth0,把MAC改为正确的
3.service network restart
vi /etc/hosts
ip name
mkdir -r /opt/soft
1;wget http://apache.fayea.com/zookeeper/zookeeper-3.4.8/
2;tar -zxvf zookeeper-3.4.8.tar.gz
3;mv zookeeper-3.4.8 zookeeper
4;cd /opt/soft/zookeeper
5;cp conf/zoo_sample.cfg conf/zoo.cfg
6;mkdir {data,logs}
7;vi conf/zoo.cfg
dataDir=/opt/soft/zookeeper/data
dataLogDir=/opt/soft/zookeeper/logs
server.1=node4:2888:3888
server.2=node2:2888:3888
server.3=node3:2888:3888
#每个zk的ID;scp后记住来这里改
8;vi ./data/myid
1
scp 到相应的节点 退回第八步改id
无密钥登陆---------------------
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub IP
16年的学习笔记,留言相互交流。
关注老铁的公众号,从小菜比到老菜比
你假笨