本文操作环境:CentOS Linux release 7.6.1810系统、PHP7.1版,Dell G3电脑
php怎么安装grpc扩展?
PHP71 安装Google gRPC扩展
“打开” gRPC 的步骤
安装 gRPC 及其 php 扩展
git clone -b $(curl -L grpc.io/release) 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
本文操作环境:CentOS Linux release 7.6.1810系统、PHP7.1版,Dell G3电脑
php怎么安装grpc扩展?
PHP71 安装Google gRPC扩展
“打开” gRPC 的步骤
安装 gRPC 及其 php 扩展
git clone -b $(curl -L grpc.io/release) 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