PHP7 学习笔记(十二)gRPC
GitHub:https://github.com/grpc/grpc/tree/master/src/php
环境:Linux + php7
1、安装grpc
pecl install grpc
编译成功提示信息
...
Build process completed successfully Installing '/usr/local/php-7.1.8/lib/php/extensions/no-debug-non-zts-20160303/grpc.so' install ok: channel://pecl.php.net/grpc-1.9.0 configuration option "php_ini" is not set to php.ini location You should add "extension=grpc.so" to php.ini
2、修改 php.ini
将此行添加到您的php.ini文件中,例如:/etc/php7/cli/php.ini
extension=grpc.so
3、检查是否安装成功
(1)Linux命令行
php -m | grep "grpc" grpc
(2)直接使用PHP 探针
2、
参考:
2、gRPC分享