Mongo DB is a non-relational database (NOSQL) that is currently very popular in the IT industry, and its flexible data storage methods are highly favored by current it practitioners.
In this article, the installation steps of MongoDB in the centos6.5 system are described in detail.
Required Software
- Mongodb-linux-x86_64-2.6.7.tgz (can be downloaded directly from MongoDB's website)
- Centos6.5 system
Install to Folder
Installation steps
- Enter the/usr/local directory
Cd/usr/local
- Create a MongoDB folder as the installation destination folder
mkdir MongoDB
- Unzip the file and move it to the MongoDB folder
tar -zxvf mongodb-linux-x86_64-2.6. 7. tgz
- Move all files under the extracted folder to the MongoDB folder
CD mongodb-linux-x86_64-2.6. 7 MV */usr/local/mongodb
- Create a Data folder to hold the file, create a logs file to store it
cd/usr/local/mongodbmkdir dataTouch logs
- Start MongoDB Service
CD bin. /mongod-dbpath=/usr/local/mongodb/data-logpath=/usr/local/mongodb/logs
Verify that the installation is successful
Open 127.0.0.1:27017, if you see "It looks like you were trying to access MongoDB over HTTP on the native driver port.", indicates that MongoDB installation was successful! After that, you will be happy to use the MongoDB Oh!
Installing MongoDB under Centos6.5