Deploy zookeeper3.4.8 under centos7

Recently, I have time to try dubbo. I encountered a series of problems when installing dubbo-admin and zookeeper. It is worth remembering.

After installing zookeeper on the virtual machine [192.168.1.108], local access from the virtual machine is normal; so compile and deploy dubbo-admin.war on the host machine [192.168.1.106], open the browser and wait to witness the miracle.

Wait and wait. . . A minute later, the miracle did not appear, and the browser kept spinning in circles.

The console is also correct, the intuition is that there is a problem with zk.

Test zkCli.cmd -server 192.168.1.108:2288, you can see the following errors

 

ClientCnxn$SendThread@1162] - Session 0x0 for server null, unexpected error, closing socket connection and attempt to authenticate using SASL (unknown error)

The errors that can be searched are: wrong host, mismatch of zk client server, etc., which can be described as irrelevant in combination with the specific environment.

 

 

Telnet 192.168.1.108:2288 found that it could not connect. From the host putty can connect to the virtual machine, the network is no problem. View virtual machine port status:



Resolutely disable IPv6 (SSH has two listening ports ipv4 and ipv6), but still can't connect after testing. Thought it was affected by the firewall. The firewalld used by centOS7, so open port 2288 (in the middle, it is suspected that there is a problem with the port and the port is changed):

 

Test again, and finally you can operate zookeeper. dubbo-admin access is normal.



 

 

Guess you like

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