zookeeper命名报错conf is not executed because it is not in the whitelist的解决办法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
·
今天在学习zookeeper的时候,学习到了四字命令,但是在linux上使用如下命令报错:
[root@izuf6imeqt5e7h19hiwmetz bin]# echo conf | nc localhost 2181
conf is not executed because it is not in the whitelist.
经过百度查询,得到了解决的办法,现在分享给大家;
进入到zookeeper的zoo.cfg中,如下图:
[root@izuf6imeqt5e7h19hiwmetz conf]# vim zoo.cfg
我们在zoo.cfg中添加如下一行代码并保存退出
#开启四字命令
4lw.commands.whitelist=*
然后我们进到zookeeper的bin目录进行重启zookeeper即可:
重启命令:
./zkServer.sh restart
接下来使用使用四字命令既可以看到效果:

A beautiful web dashboard for Linux
最近提交(Master分支:3 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐

所有评论(0)