CentOS中PHP服务器安装gRPC

    xiaoxiao2022-07-13  131

    载 PHP的gRPC扩展和protobuf扩展

    PHP的gRPC扩展:http://pecl.php.net/package/gRPC PHP的protobuf扩展: http://pecl.php.net/package/protobuf

    wget http://pecl.php.net/get/grpc-1.20.0.tgz wget http://pecl.php.net/get/protobuf-3.7.1.tgz

    安装gRPC扩展

    tar -xzvf grpc-1.20.0.tgz cd grpc-1.20.0 /usr/local/php73/bin/phpize ./configure --with-php-config=/usr/local/php73/bin/php-config make && make install

    安装protobuf扩展

    tar -xzvf protobuf-3.7.1.tgz cd protobuf-3.7.1 /usr/local/php73/bin/phpize ./configure --with-php-config=/usr/local/php73/bin/php-config make && make install
    最新回复(0)