Zookeeper solve error: conf is not executed because it is not in the whitelist solution

1.echo wchp | nc localhost 2181, the path through the server details watch lists, and it outputs a path associated with the session. But the following errors.

[root@xg61 conf]# echo wchp | nc localhost 2181
wchp is not executed because it is not in the whitelist.

Under 2.cd / usr / local / zookeeper / conf, open zoo.cfg with vim, adding at the end:

4lw.commands.whitelist=*

Zookeeper 3. Restart the server and the client.

./zkServer.sh restart
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED

Server restart successfully, then turn on the client.

[root@xg61 bin]# ./zkCli.sh

Guess you like

Origin www.cnblogs.com/ws0316/p/12079044.html