MongoDB installation, MongoDB
1. Prepare the required tools
1) Windows 7 64bit
2) MongoDB Browse
2. Installation
1) Unzip the mongodb-win32-x86_64-3.0.3.zip to the D:\program_files\MongoDB
2) d:\program_files\MongoDB\bin Add to environment variable %mongo%
3) Create a directory %mongo%\data\db for storing the database
4) Create a directory %mongo%\data\log for storing logs
5) Create and edit the configuration file %mongo%\mongod.cfg
Dbpath=D:\program_files\MongoDB\data\dblogpath=d:\program_files\mongodb\data\log\mongo.log
6) Install MongoDB as a service
Run the following command with administrator privileges to create the MongoDB service
" \ " D:\program_files\MongoDB\bin\mongod.exe\" --service--config=\"D:\program_files\ Mongodb\mongod.cfg\""
7) Start the service
net start MongoDB
3. Use
1) Start the command line and enter MONGO
2) Show DBS
3) Use test
4) Insert
5) Find
4. PHP Development
1) Build PHP Environment Browse
2) Download the MongoDB PHP extension Browse and put it in the %php%\ext Directory
3) Modify the php.ini, add the following code
Extension=php_mongo.dll
4) Restart Apache server
5) MongoDB PHP Manual Browse
http://www.bkjia.com/PHPjc/1007362.html www.bkjia.com true http://www.bkjia.com/PHPjc/1007362.html techarticle MongoDB installation, MongoDB 1. Prepare the required tools 1) Windows 7 64bit 2) MongoDB Browse 2. Installation 1) Unzip the Mongodb-win32-x86_64-3.0.3.zip to D:\program_files\MongoDB 2) D:\program_fil ...