2019 九月 21 , 星期六
Home / 实用工具 / kafka / php zookeeper 扩展安装

php zookeeper 扩展安装

安装libzookeeper
wget http://mirror.bit.edu.cn/apache//zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz
tar -xf zookeeper-3.4.5.tar.gz
cd zookeeper-3.4.5/src/c
./configure –prefix=/usr/local/zookeeper/zookeeper-3.4.5/
sudo make && make install

安装php zookeeper扩展
wget ‘http://pecl.php.net/get/zookeeper-0.2.2.tgz’
tar zxvf zookeeper-0.2.2.tgz
cd zookeeper-0.2.2
/Applications/XAMPP/xamppfiles/bin/phpize
./configure –with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config –with-libzookeeper-dir=/usr/local/zookeeper/zookeeper-3.4.5/
sudo make && make install

sudo echo “extension=zookeeper.so” >> /Applications/XAMPP/xamppfiles/etc/php.ini

Check Also

redis 漏洞 事故总结

事故起因 合并uc数据方案采用 ...

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>