英文:
How to resolve the error "'nc' not available in my environment."
问题
'nc' 在我的环境中不可用。
这个错误的解决方法是安装 'nc' 工具或使用其他替代工具来执行该命令。
英文:
I try to run this command to validate if zookeeper service is healthy or not
echo ruok | nc localhost 2181
and i got this error in the terminal 'nc' not available in my environment.
what is the solution for this error?
答案1
得分: 0
你可以使用以下命令连接到Zookeeper:
telnet localhost 2181
然后,如果连接成功,可以输入 ruok
并按回车键。
检查你收到的响应。如果ZooKeeper健康,它应该会回复 imok
。
英文:
You can use this command to connect zookeeper
telnet localhost 2181
Then if you connected you can
type ruok
and press Enter.
Check the response you receive. If ZooKeeper is healthy, it should respond with imok
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论