解決辦法:先參考文章:https://blog.csdn.net/bird3014/article/details/92852726
一般都能解決,但是我這次重啟服務后還是提示:conf is not executed because it is not in the whitelist.
發現重啟的時候顯示這個進程找不到,沒有殺掉。如下圖:
先找到服務的進程, ps -ef|grep zookeeper|grep -v grep
殺掉這個進程,kill -9 10092
再重啟,zkServer.sh restart
再使用四字命令,echo conf|nc 192.168.147.129 2181,發現可以正常使用了!