php aliyun_kafka环境配置 ,使用
1.安装 gcc …等库
yum -y install gcc gcc-c++ wget
2.安装 re2c
yum -y install re2c
3.下载librdkafka
git clone https://github.com/edenhill/librdkafka.git
4.配置 ./configure
5.编译安装
make && make install
6.下载rdkafka
git clone https://github.com/arnaud-lb/php-rdkafka.git
7.进入目录然后编译安装
cd php-rdkafka
phpize
./configure
make all -j 5
sudo make install
8.安装 rdkafka
pecl install rdkafka
9.用vi编辑 php.ini 添加以下内容
extension=rdkafka.so
10.重启apache服务
systemctl restart httpd