我在centos 7上使用和PHP7.0。如何在服务器上启用libmongoc SSL?
这是我的php -i|grep mongo
mongodb
libmongoc bundled version => 1.12.0
libmongoc SSL => disabled
libmongoc crypto => disabled
libmongoc SASL => disabled
libmongoc ICU => disabled
libmongoc compression => enabled
libmongoc compression snappy => disabled
libmongoc compression zlib => enabled
mongodb.debug => no value => no value
PWD => /root/mongo-php-driver
$_SERVER['PWD'] => /root/mongo-php-driver
使用here中遵循的步骤进行安装
似乎默认情况下未配置
libmongoc
和libbson
? 最佳答案
可以,我得到了答案,请在此处发布以获取更多参考。
sudo yum install -y openssl-devel
sudo yum install pecl
sudo yum install gcc
sudo pecl install mongodb
为了启用libmongoc,需要遵循以下步骤
您可以使用以下命令检查是否已启用它们
php -i | grep mongo
mongodb
libmongoc bundled version => 1.12.0
libmongoc SSL => enabled
libmongoc SSL library => OpenSSL
libmongoc crypto => enabled
libmongoc crypto library => libcrypto
libmongoc crypto system profile => disabled
libmongoc SASL => enabled
libmongoc ICU => disabled
libmongoc compression => enabled
libmongoc compression snappy => disabled
libmongoc compression zlib => enabled
mongodb.debug => no value => no value
感谢您尝试其他人