I. Overview
Mongo db After download down how we should install boot and configuration to use Mongo db, this blog will tell you about Mongo DB installation start-up and configuration detailed.
Second, installation
1. Download MONGO DB
Http://www.mongodb.org/downloads
Click on the link above to download MONGO DB
2, decompression MONGO DB
3. Configure Environment variables
4. Check if MONGO DB installation is successful
CMD mongo-version
Iii. start-Up and configuration detailed
Three files required to start MONGO DB
mongodbservice.bat server
mongodbclient.bat client
mongodb.conf configuration
below to explain how each file is configured
mongodbservice.bat
Mongod.exe--config mongodb.conf
--config: #指定启动项用文件的路径
Mongodbclient.bat
Address and port number of your server
MONGO 127.0.0.1:27017/admin
Mongodb.conf
dbpath=d:\software\mongodbdata# Database Address #
port=27017# Specifies the port number that the server listens on, default is 27017
fork=true# start MongoDB in a daemon way
logpath=d:\mongodblog# Log Path
auth=true|false# Safety Authentication Method
Bind_ip =127.0.0.1# The IP of this server
slave=true|false# determine that you are from the server
Master=true|false #确定我是主服务器
replset= child/127.0.0.1:2222 #设定同伴
Finally, we open the server and then open the client, you can use MongoDB as
Iv. Summary.
This blog is just about a simple installation, the way to start MongoDB and a way to install the service is not explained here.
Java from getting started to mastering--database article MONGO DB installation Start-up and configuration detailed