php怎么安装grpc扩展
时间:2021-07-08
来源:互联网
今天PHP爱好者给大家带来php安装grpc扩展的方法:首先在php.ini文件中添加grpc扩展配置;然后安装protobuf及其php扩展;最后重启php-fpm即可。希望对大家有所帮助。
本文操作环境:CentOS Linux release 7.6.1810系统、PHP7.1版,Dell G3电脑
php怎么安装grpc扩展?
PHP71 安装Google gRPC扩展
“打开” gRPC 的步骤
安装 gRPC 及其 php 扩展
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
make install
cd src/php/ext/grpc
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
vi /usr/local/php/etc/php.ini
在 php.ini 文件中添加 grpc 扩展配置:extension=grpc.so
安装 protobuf 及其 php 扩展
cd ../../../../third_party/protobuf
./autogen.sh
./configure
make
make install
cd php/ext/google/protobuf
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
vi /usr/local/php/etc/php.ini
在 php.ini 文件中添加 protobuf 扩展配置:extension=protobuf.so
重启 php-fpm
以上就是php怎么安装grpc扩展的详细内容,更多请关注php爱好者其它相关文章!
-
币安怎么购买First币?First购买教程与币安binance下载入口 时间:2025-05-15
-
币安怎么购买Pay币?Pay购买教程与币安binance下载入口 时间:2025-05-15
-
《“马上就到”的距离单位是什么?》 时间:2025-05-15
-
币安怎么购买Attention币?Attention购买教程与币安binance下载入口 时间:2025-05-15
-
币安怎么购买MATIC币?MATIC购买教程与币安binance下载入口 时间:2025-05-15
-
《为什么我的灵感总是在洗澡的时候出现?》 时间:2025-05-15
今日更新
-
一般VLAN设置为tag还是untag?
阅读:18
-
ftp端口号20和21的区别是什么
阅读:18
-
php数据库无法插入中文怎么办
阅读:18
-
聊聊Redis中的缓存雪崩、缓存击穿和缓存穿透
阅读:18
-
c盘roaming文件夹可以删除吗
阅读:18
-
命令按钮控件是哪个
阅读:18
-
php int是几个字节
阅读:18
-
为了使李萨如图形稳定下来能否使用示波器上的同步按钮?
阅读:18
-
hms core有什么作用
阅读:18
-
JAVAscript怎么执行cmd命令
阅读:18