直接下载到本地依次执行: https://github.com/edenhill/librdkafka.git cd librdkafka/ ./configure make udo make install