windows Zookeeper Dubbo installation

Install Dubbo registry (Zookeeper-3.3.6)

1. Modify the /etc/hosts file of the operating system to add:

127.0.0.1 edu-provider-01 

2. Download zookeeper-3.3.6

3. Create the following directories in the /home/wusc/zookeeper-3.3.6 directory:

data

logs



 

4. Copy the zoo_sample.cfg file in the zookeeper-3.4.6/conf directory and name it zoo.cfg

5. Modify the zoo.cfg configuration file:

 

tickTime=2000

initLimit = 10

syncLimit=5 

dataDir=/home/wusc/zookeeper-3.3.6/data 

dataLogDir=/home/wusc/zookeeper-3.3.6/logs

clientPort=2181

server.1=edu-provider-01:2888:3888

 

in:

The 2888 port number is the port for communication between zookeeper services.

3888 is the port through which zookeeper communicates with other applications.

edu-provider-01 is the hostname with the IP mapped in hosts.



 

 

6. Create myid file under dataDir=/home/wusc/zookeeper-3.3.6/data

 

Edit the myid file and enter the corresponding number on the machine with the corresponding IP. For example, on zookeeper, the content of myid file is 1. If the installation configuration is only done on a single point, there is only one server.1.



 

7. Enter D:\zookeeper-3.3.6/zookeeper-3.3.6/bin in the command box and run zkServer


 

8. Open another command box, jps to see if it starts



9. The configuration is successful

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326390179&siteId=291194637