1?https://archive.apache.org/dist/zookeeper/zookeeper-3.4.12/
2?tar -xzvf zookeeper-3.4.12.tar.gz,将conf下的conf复制并改为zoo.cfg
3?cd zookeeper-3.4.12/src/c
4?./configure -prefix=zookeeper-3.4.12/
5?make && make install
6?下载扩展https://github.com/php-zookeeper/php-zookeeper
7?phpize
8?./configure --with-libzookeeper-dir=zookeeper-3.4.12/
9?make && make install
第8步如果提示 not find php_session.sh,加上--with-php-config=/usr/local/php5/bin/php-config
./configure --with-libzookeeper-dir=/Users/johnnyzhang/zookeeper3.4.12 --with-php-config=/usr/local/php5/bin/php-config
第1?4步,一定要用zookeeper-3.4.12,其他版本都没有成功。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。