热门IT资讯网

Ubuntu16.04安装php kafka扩展

发表于:2024-11-24 作者:热门IT资讯网编辑
编辑最后更新 2024年11月24日,一.安装librdkafkagit clone https://github.com/edenhill/librdkafka.gitcd librdkafka/./configuremakesudo

一.安装librdkafka

git clone https://github.com/edenhill/librdkafka.git
cd librdkafka/
./configure
make
sudo make install //甚至不用这一步
cd /usr/local/lib/
sudo ln -sf librdkafka++.so.1 librdkafka++.so

二.安装扩展
git clone https://github.com/arnaud-lb/php-rdkafka.git
cd php-rdkafka
phpize
./configure --with-php-config=/usr/bin/php-config
make all -j 5
make test
sudo make install

0