Current location - Quotes Website - Collection of slogans - How to change the port number of zookeeper
How to change the port number of zookeeper
In the latest version of zookeeper, there is an embedded management console started by jetty, which will also occupy port 8080.

By looking at the official documentation of zookeeper, we found that there are three solutions:

(1). Delete the jetty.

(2) Modify the port.

There are two ways to modify this method. One is to add -Dzookeeper.admin.serverPort= your port number in the startup script. The other is to add admin.serverPort= an unoccupied port number in zoo.cfg

(3) Stop using the service and add "-dzookeeper.admin.enableserver = false" in the startup script.

Recommend the second one. The above answers come from Lin 120 Technology Center.