Linux en el zookeeper instalación y la configuración

1.
1.1 Cree cuatro máquinas virtuales y arranques:
Aquí Insertar imagen Descripción
1.2 centos7 establecer una carpeta de archivos colocado dentro de cuatro sesiones, respectivamente, Nota1 Nota 2 Nota 3, en la cáscara, Nota4
Aquí Insertar imagen Descripción
1.3 establecido con éxito
Aquí Insertar imagen Descripción
2. Configuración de inicio
2.1: Modificar el nombre de host: Conjunto hostnamectl nombre de host -hostname --static (permanente)
el sistema: reinicio
Ver nombre de host: nombre de host
Aquí Insertar imagen Descripción
2.2 firewall desactivado
al entrar service iptables stop, aparecerá el icono de error siguientes:
Aquí Insertar imagen Descripción
a continuación, es necesario instalar un servicio iptables:

systemctl stop firewalld 
systemctl  mask firewalld 
yum install iptables-services(安装)
systemctl stop iptables(开机关闭)
service iptables save(保存)

2.3: Configurar botón de sincronización
Aquí Insertar imagen Descripción
Aquí Insertar imagen Descripción
2.4 cuidador del zoológico crear carpetas
Aquí Insertar imagen Descripción
Aquí Insertar imagen Descripción
2.5 Haga clic xftp6, empleado del zoológico-bin para abrir el archivo que desea pasar,
2.6 cuidador del zoológico Descargar:
https://mirrors.cloud.tencent.com/apache/zookeeper/zookeeper-3.5.7/
2.7note1, Nota 2, Nota 3, están utilizando este método para cargar

Aquí Insertar imagen Descripción
2.8: Extracto: tar - zxvf el Apache ZooKeeper-3.5.7-bin.tar.gz
Aquí Insertar imagen Descripción
2.9 cambio de nombre:
mv el Apache-3.5.7-bin-ZooKeeper ZooKeeper el Apache- Aquí Insertar imagen Descripción
tar de eliminación envasar
Aquí Insertar imagen Descripción
la introducción de datos, crear y entrar en myid, modificar el contenido dentro de
Aquí Insertar imagen Descripción
myid escribir 0,1,2 respectivamente. i, modificar, salida ESC: wq obligado a guardar y salir!
Aquí Insertar imagen Descripción
entro empleado del zoológico, el Apache
Aquí Insertar imagen Descripción
perfil de empleado del zoológico 3. Modificar:
3,1: introducir conf`` [root @ nota1 Apache-empleado del zoológico ] # cd conf / `` `
zoo_sample.cfg copia, a zoo.cfg. [root@note1 conf]# cp zoo_sample.cfg zoo.cfg
Modificar el fichero de configuración zoo.cfg. [root@note1 conf]# vim zoo.cfg
zoo.cfg perfil:
DataDir = / Datos / ZooKeeper / Datos
server.0 = Nota 1: 2888: 3888
server.1 = Nota 2: 2888: 3888
server.2 = Nota 3: 2888: 3888

# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/data/zookeeper/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.0=note1:2888:3888
server.1=note2:2888:3888
server.2=note3:2888:3888

3.2: Iniciar el cuidador del zoológico[root@note1 apache-zookeeper]# bin/zkServer.sh start

Aquí Insertar imagen Descripción
Ver estado: [root@note1 apache-zookeeper]# bin/zkServer.sh status
JPS comienzan: jpsAquí Insertar imagen Descripción
3.3 (Firefox) para el acceso nota1 en el navegador: 8080

Aquí Insertar imagen Descripción
3.4
Aquí Insertar imagen Descripción
completa cuidador del zoológico de configuración
3.4:
Ver registro de vim logs/zookeeper-root-server-note1.out
archivo de distribución:scp -r apache-zookeeper/root@note2$pwd scp -r apache-zookeeper/root@note3$pwd

Publicado 16 artículos originales · ganado elogios 9 · visitas 279

Supongo que te gusta

Origin blog.csdn.net/XIAOMO__/article/details/104802404
Recomendado
Clasificación