Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1001 Bytes

1.0-INSTALL.md

File metadata and controls

50 lines (37 loc) · 1001 Bytes

安装(Install)

1步 通过Composer安装

通过 Composer 安装 如果还没有安装 Composer,你可以按 getcomposer.org 中的方法安装

2步 安装 zwei/emq 包

composer require zwei/emq 安装路径 安装版本

composer create-project zwei/rabbitmq-event-app rabbitmq-event-app 2.*

3步 安装 librdkafka

安装步骤如下:

git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure
make && make install

4步 安装php php-rdkafka 扩展

安装步骤如下:

git clone https://github.com/arnaud-lb/php-rdkafka.git
cd php-rdkafka
/usr/local/opt/php/bin/phpize
./configure --with-php-config=/usr/local/php7.0/bin/php-config
make && make install

5步 php.ini 增加扩展配置

php.ini中增加扩展:

extension = rdkafka.so