zookeeper_mac安装总结
2022/4/10 23:45:13
本文主要是介绍zookeeper_mac安装总结,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Zookeeper mac安装总结
1. 执行
brew install zookeeper
可能遇到报错
Error: The following directories are not writable by your user: /usr/local/share/man/man5 You should change the ownership of these directories to your user. sudo chown -R $(whoami) /usr/local/share/man/man5 And make sure that your user has write permission. chmod u+w /usr/local/share/man/man5
这时需要执行以下命令修正错误
➜ ~ sudo chown -R `whoami`:admin /usr/local/bin ➜ ~ sudo chown -R `whoami`:admin /usr/local/share
然后再执行
brew install zookeeper
安装成功后,zookeeper的配置目录在/usr/local/etc/zookeeper
➜ ~ ll /usr/local/etc/zookeeper total 32 -rw-r--r-- 1 Jiangzhongjin admin 346 Aug 18 16:40 log4j.properties drwxr-xr-x 6 Jiangzhongjin admin 192 Aug 18 16:40 . -rw-r--r-- 1 Jiangzhongjin admin 941 Aug 18 16:40 zoo_sample.cfg -rw-r--r-- 1 Jiangzhongjin admin 941 Aug 18 16:40 zoo.cfg -rw-r--r-- 1 Jiangzhongjin admin 67 Aug 18 16:40 defaults drwxr-xr-x 9 Jiangzhongjin admin 288 Aug 18 16:40 ..
2. 如果需要修改配置,直接修改/usr/local/etc/zookeeper/zoo.cfg
3. 执行下面命令启动
zkServer start
4. zookeeper 其他命令总结
zkServer start //启动zookeeper zkServer stop //停止(关闭)zookeeper zkServer status //查看zookeeper状态 zkCli //连接本地zookeeper,可接IP:port连接远端zookeeper
这篇关于zookeeper_mac安装总结的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-14Fetch / Axios学习:入门教程与实战指南
- 2024-11-14Typescript 类型课程入门教程
- 2024-11-14Fetch / Axios课程:初学者必看的网络请求教程
- 2024-11-14Styled-components课程:初学者指南
- 2024-11-13pre-commit 自动化测试课程:入门教程与实践指南
- 2024-11-13什么是AIGC?如何使用AIGC技术辅助办公?
- 2024-11-13Slicm 框架怎么进行用户认证?-icode9专业技术文章分享
- 2024-11-13在查询时将 map_coord 列的值转换为字符串有哪些方法?-icode9专业技术文章分享
- 2024-11-13如何将微信地区改成自定义文案?-icode9专业技术文章分享
- 2024-11-13DNS 缓存存在问题有哪些症状和解决方法?-icode9专业技术文章分享