PHP is conducive to learning, widely used, mainly applicable to the field of web development.
The main goal of MongoDB is to set up a bridge between key/value storage (high performance and high scalability) and traditional RDBMS systems (rich functionality), combining the advantages of both.
Using MongoDB in PHP you have to use the MongoDB PHP driver.
This article is a small compilation in the deployment of production environment when the simple record.
1. Download the PHP MongoDB driver installation package mongodb-1.1.9.tgz
wget https://pecl.php.net/get/mongodb-1.1.9.tgz
2. Decompression Drive Installation Package
Tar zxf./mongodb-1.1.9.tgz
3. Installation drive
PECL Install MongoDB
4. Add in PHP.ini
extension= "Mongodb.so"
5. Restart PHP-FPM
/ETC/INIT.D/PHP-FPM restart
To do this, you can use the MongoDB drive normally, and remember to turn the MONGODB server on when you use it.
The above is a small set to introduce the Linux installation of PHP MongoDB driver, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!