如何在 Ubuntu 中查找 ZooKeeper 安装路径
在 Ubuntu 中,可以使用以下命令来查看 ZooKeeper 的安装路径:
- 如果你是通过 apt 安装的 ZooKeeper:
dpkg -L zookeeper
- 如果你是手动编译安装的 ZooKeeper:
cat /etc/zookeeper/conf/zoo.cfg | grep dataDir
以上命令将输出 ZooKeeper 的安装路径。
原文地址: https://www.cveoy.top/t/topic/n6Io 著作权归作者所有。请勿转载和采集!