First, look inside your phpinfo to see how many bits of your system are 6 or 32.
Then enter https://www.mongodb.com/download-center#community to download the Linux installation package
Unzip the compressed package tar zxf mongodb-linux-i686-1.8.2.tgz2 after the download is complete. Install prepare to move MongoDB to/usr/local/server/mongdb folder MV Mongodb-linux-i686-1.8.2/usr/local/mongodb Create database folder and log file mkdir/usr/ Local/mongodb/datatouch/usr/local/mongodb/logs//This is a/usr/local/server/mongodb/bin/mongod that does not require a password--dbpath=/usr/ Local/server/mongodb/data--logpath=/usr/local/server/mongodb/logs--logappend--port=27017--fork
3. Set boot to start the MongoDB startup project after joining Rc.local to ensure that MongoDB starts the echo "/usr/local/server/mongodb/bin/mongod" when the server is powered on--dbpath=/usr/local /server/mongodb/data–logpath=/usr/local/server/mongodb/logs–logappend--auth–port=27017 ">>/etc/rc.local
Then http://www.osyunwei.com/archives/7643.html install mongodb extension download that extension can be preferably this mongo-1.6.14.taz download extension of the website ishttp://pecl.php.net/get/mongo-1.5.1.tgz
Upload mongo-1.5.1.tgz to/usr/local/src directory
Tar zxvf mongo-1.5.1.tgz #解压
CD mongo-1.5.1
/usr/local/php/bin/phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make #编译
Make install #安装, the following interface appears after completion
And then add it to the php.ini.extension= "mongo.so"and finally execute these two wordsThe first sentence: KILL-USR2 ' cat/usr/local/webserver/php/var/run/php-fpm.pid 'The second sentence:/usr/local/webserver/nginx/sbin/nginx-s Reload
then under phpinfo see if there is MONGO, some words installed successfully
Friendship Watch MongoDB Novice Tutorial Web page
Http://www.runoob.com/mongodb
Installation Tutorials
Http://jingyan.baidu.com/article/d5c4b52bef7268da560dc5f8.html (for reference)
Http://www.jb51.net/article/58530.htm (for reference)
Http://www.cnblogs.com/lecaf/archive/2013/08/23/mongodb.html (OK)
Uninstalling the MongoDB service
Http://jingyan.baidu.com/article/455a995083f2c5a167277872.html
SC Delete MongoDB
Mongod.exe--remove--servicename "MongoDB"
PHP operation for MongoDB Web page
http://m.blog.csdn.net/article/details?id=50668689
Extensions for different versions of PHP download
Http://pecl.php.net/package/mongo/1.6.12/windows
Authorization Reason troubleshooting
Http://www.2cto.com/database/201507/420854.html
http://ls-la.me/2015/07/29/mongo-04/
Using tutorials
Http://www.runoob.com/mongodb/mongodb-php.html (detailed additions and deletions to be found)
Http://www.runoob.com/mongodb/mongodb-connections.html
CMD command Manual
Http://wenku.baidu.com/link?url=I8GWHC6WXAcC-i6TyTt6cgG71-En2Kh4Ofd1kt9NN5O4Cp2JJCH7eHuGNjCNGoZS5ogGC2FDDH_ Holkqsxbefe_snbtzbgg_-8jlkqspy1i
See if your system is a 64-bit or 32-bit command
Getconf Long_bit
Linux under Installation (this way)
Http://blog.csdn.net/yuwenruli/article/details/8529192?ADUIN=1749537612&ADSESSION=1460444970&ADTAG=CLIENT. qq.5467_.0&adpubno=26558
Using basic commands under Linux
Http://www.cnblogs.com/TankMa/archive/2011/06/08/2074947.html
Http://www.linuxidc.com/Linux/2011-09/43907.htm (This)
PHP Operation MongoDB
Http://www.3lian.com/edu/2014/02-25/131011.html
Http://www.osyunwei.com/archives/7643.html
Linux the following php operation MongoDB extension download
Http://pecl.php.net/get/mongo-1.5.1.tgz
Export path= $PATH:/usr/local/webserver/php/bin/phpsize
./configure--with-php-config=/usr/local/webserver/php/bin/php-config
/usr/local/webserver/php/bin/phpize
./configure--with-php-config=/usr/local/webserver/php/bin/php-config
Installation of MongoDB under Linux