PHP安装rdkafka扩展
cd /usr/local/
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka
./configure
make && make install
cd /usr/local/
git clone https://github.com/arnaud-lb/php-rdkafka.git (目前最低支持php8.1)
cd php-rdkafka
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
echo "extension=rdkafka.so" | sudo tee -a /usr/local/php/etc/php.ini