NoSQL's use of human data in a very short time is high, not only as a new storage idea, but also because it is more efficient at manipulating big data than the relational database
Tools/Materials
- A CentOS computer connected to the Internet
Download the installation file
Download the installation file
wget https://fastdl.mongodb.org/linux/mongodb-linux-i686-2.6.7.tgz?_ga=1.68265944.858401362.1421216907
View downloaded compressed files
END
Unzip the file
Unzip the file
TAR-ZXVF mongodb-linux-i686-2.6.7.tgz
Renaming
MV mongodb-linux-i686-2.6.7 MongoDB
END
Install and configure
Create a new directory log to store logs
Create a new directory db to hold data information
Go to Bin directory to view files
Create a new configuration file and write configuration information
VI mongodb.conf
The configuration information is as follows:
DBPath =/data/test/db #数据文件存放目录
LogPath =/data/test/logs/mongodb.log #日志文件存放目录
Port = 27017 #端口
Fork = True #以守护程序的方式启用, which runs in the background
Nohttpinterface = True
Create a Directory
/data/test/db
Create a log file directory
/data/test/logs/
END
Start
- 1
Starting in the Bin directory
./mongod--config mongodb.conf
END
Precautions
- The path in the bin/mongodb.conf must correspond to the actual path
- Configuration file, DBPath is a directory path, LogPath is a path and log file
Centos installation MONGO DB