git clone https://github.com/confluentinc/librdkafka.git
cd librdkafka
./configure
make && make install
git clone https://github.com/arnaud-lb/php-rdkafka.git
cd php-rdkafka
phpize
./configure --with-php-config=/www/server/php/81/bin/php-config
make all -j 5
sudo make install
然后去配置 php.ini 中加入:
[kafka]
extension=/www/server/php/81/lib/php/extensions/no-debug-non-zts-20210902/rdkafka.so
本文为Larwas原创文章,转载无需和我联系,但请注明来自larwas博客 https://larwas.com
最新评论