Need help with ext-zookeeper?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

swoole
142 Stars 31 Forks 131 Commits 0 Opened issues

Description

🧑 Coroutine-based ZooKeeper Client for PHP

Services available

!
?

Need anything else?

Contributors list

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.