This article mainly introduces the PHP operation MongoDB implementation of adding and removing functions, combined with examples of the form of a summary of the PHP operation MongoDB Common skills, and with PHP7 operation MongoDB method, with a
This article mainly introduces the PHP operation MongoDB implementation of adding and removing functions, combined with examples of the form of a summary of the PHP operation MongoDB Common skills, and with PHP7 operation MongoDB method, with a
Compile and install PHP7
Compile installation PHP7 mongdb extension
#先安装一个依赖库yum-y install openldap-develwget https://pecl.php.net/get/mongodb-1.1.1.tgz/home/server/php7/bin/phpize # Depends on your own compiled PHP
CentOS Install PHP 7 's MongoDB extension encounters the PitWhen I deploy a PHP environment on Docker, the installation of MongoDB extensions encounters a pit:PHP Fatal error:uncaught mongodb\driver\exception\authenticationexception:the "scram-sha-1"
PhpClass 'official client' NOTFound: install the latest php_mongodb.dll extension corresponding to the official version for php7.0.4 in windows. the extension version is 1.1.6 and supports the highest version of MongoDB3.2 and php7.0 ,; you can see
1. Installation official: https://www.mongodb.org/dl/linux/x86_64-rhel62 Our download of MongoDB is the community version, has helped us compile well, so we do not need to compile here, We simply unzip the downloaded file and move it to the
PHP7 MongodbAPI usage details ,. PHP7 MongodbAPI use details, compile and install PHP7 compilation and install PHP7Mongdb extension # First install a dependency Library yum-yinstallopenldap-develwgetpecl.php.netgetmongodb-1.1.1.t PHP7 Mongodb API
This operation is for installation Services with centos7.2, and environment configuration, LNMP installation with MongoDB instead of MySQL---------------------------------------------------------------------------------------Php----------------------
We use the PECL command to install:/usr/local/php7/bin/pecl Install MongoDBAfter successful execution, the following results are output:'/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/mongodb.so 'install OK: Channel://
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.