Giter Site home page Giter Site logo

ext-zookeeper's Introduction

ext-zookeeper

依赖 SwoolePHP-X

CircleCI

已支持的指令

  • create
  • addAuth
  • get
  • set
  • getChildren
  • delete
  • exists
  • getAcl
  • setAcl
  • getState
  • 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

ext-zookeeper's People

Contributors

crazyxman avatar heyanlong avatar hihozhou avatar leizhang-hunter avatar matyhtf avatar minbaby avatar sy-records avatar xavieryang007 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.