1.下載zookeeper源碼
https://github.com/apache/zookeeper
cd zookeeper
2.安裝ant
使用brew安裝ant
brew install ant
查看ant是否安裝成功
3.編譯源碼
ant eclipse
出現(xiàn)如下提示就是編譯成功
4.導(dǎo)入idea啟動(dòng)server
找到ZooKeeperServerMain類员淫,并自定義傳入修改傳入?yún)?shù)饱须。
https://github.com/apache/zookeeper
cd zookeeper
brew install ant
ant eclipse
找到ZooKeeperServerMain類员淫,并自定義傳入修改傳入?yún)?shù)饱须。