482
1、在php.ini文件中添加grpc扩展配置:extension=grpc.so
gitclone-b$(curl-Lhttps://grpc.io/release)https://github.com/grpc/grpc cdgrpc gitsubmoduleupdate--init make makeinstall cdsrc/php/ext/grpc phpize ./configure--with-php-config=/usr/local/php/bin/php-config make makeinstall vi/usr/local/php/etc/php.ini
2、安装 protobuf及其php扩展
cd../../../../third_party/protobuf ./autogen.sh ./configure make makeinstall cdphp/ext/google/protobuf phpize ./configure--with-php-config=/usr/local/php/bin/php-config make makeinstall vi/usr/local/php/etc/php.ini
3、重启php-fpm。