Download the latest mongodb package: www. mongodb. orgdownloads provides a visual interface for downloading mongodb. csdn. install the netdetaillovesummerforever8036417 software on the mongodb server as follows: 1. Follow the mongodb specifications and select your own disk creation folder,
Software download mongodb latest package: http://www.mongodb.org/downloads download mongodb visual interface, mongoVUE: http://download.csdn.net/detail/lovesummerforever/8036417 software install mongodb Server installation steps are as follows: 1. comply with mongodb specifications, choose your own disk to create a folder,
Software Download
Download mongodb latest package: http://www.mongodb.org/downloads
Download mongodb visual interface, mongoVUE: http://download.csdn.net/detail/lovesummerforever/8036417
Software Installation
The steps for installing the mongodb server are as follows:
1. Follow the mongodb specifications and select your own disk to create a folder. Here I select disk D and create the following directory structure.
D: \ mongodb is the root directory for installation.
D: \ mongodb \ data Directory
D: \ mongodb \ data \ db database directory
D: \ mongodb \ data \ log database log directory
2. decompress the latest mongodb package and copy the bin folder to the mongodb folder.
3100000000.exe is a shell client, and mongod is performed by the database itself. It can be run in the dos window.
For ease of operation, we can configure the mongodb path, so that you do not need to go to the mongodb bin directory.
4. Start the process
Start the mongodb service at one time.
Run in dos window, Mongod -- dbpath = D: \ mongodb \ data \ db
Integrate mongodb into windows
Like relational database mysql, mysql needs to start the mysql service, while mongodb needs to start the mongodb database service. However, once the window for dos to start mongodb is closed, the service will be stopped. It is very laborious to start it every time, we can integrate the mongodb service into a windows service. Enable mongodb services with startup. The command is as follows:
Create a service:
D: \ mongodb \ bin \ mongod.exe -- dbpathD: mongodb \ data \ db -- logpath D: \ mongodb \ data \ log \ mongodb. log -- install -- serviceName MongoDB
Start the mongodb service:
Net start MongoDB
Delete service:
D: \ mongodb \ bin \ mongod.exe -- dbpath D: mongodb \ data \ db -- logpath D: \ mongodb \ data \ log \ mongodb. log -- remove -- serviceName MongoDB
Disable the mongodb service:
NETSTOP MongoDB
We will see the mongodb service we added in the windows Service:
The next article focuses on setting user access permissions for mongodb.