ext-zookeeper

by swoole

🧑 Coroutine-based ZooKeeper Client for PHP

137 Stars 29 Forks Last release: Not found 129 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

ext-zookeeper

依赖

Swoole
PHP-X

CircleCI

已支持的指令

  • [x] create
  • [x] addAuth
  • [x] get
  • [x] set
  • [x] getChildren
  • [x] delete
  • [x] exists
  • [x] getAcl
  • [x] setAcl
  • [x] getState
  • [x] getClientId

安装 Swoole

pecl install swoole

安装 PHP-X

参考 PHP-X 安装

Build

phpx build -v -d
phpx install

安装过程中可能遇到的问题

  1. 安装完成后,执行

    php test/test.php
    报找不到
    swoole\zookeeper

    执行

    php -i | grep php.ini
    找到配置文件的位置,在
    php.ini
    中动态扩展配置区加入
    extension=swoole_zookeeper.so
  2. 出现这种错误

    Unable to load dynamic library '/usr/lib64/php/modules/cpp_ext.so' - libphpx.so: cannot open shared object file: No such file or directory in Unknown on line 0

    说明

    PHP-X
    没有安装成功,请重新安装
    PHP-X
  3. 执行

    phpx build -v -d
    ,出现
    fatal error: swoole/include/socket_hook.h No such file or directory

    请重新安装编译安装

    Swoole

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.