1. MongoDB Installation
I'm using an offline installation,
(1) Download the required version on the official website of MongoDB. I downloaded the mongodb-linux-x86_64-ubuntu1604-3.4.5.tgz.
(2) Download and unzip to the directory to be installed, I downloaded here in the downloads directory:
- CD Downloads
Then execute the command and unzip it to the/usr/local file.
- sudo tar-zxvf mongodb-linux-x86_64-ubuntu1404-3.2. 4.tgz-c/usr/local
(3) Move to the/usr/local folder to see the extracted MongoDB folder, rename the folder to MongoDB
- Cd/usr/local
- sudo mv mongodb-linux-x86_64-ubuntu1404-3.2. 4 MongoDB
#进入到最顶层根目录
- sudo mkdir-pv/mongo/data/{mongodb_data,mongodb_log} #创建文件夹
- sudo gedit/mongo/data/mongodb_log/mongodb.log #保存退出. Create a log file
- sudo gedit/etc/mongodb.conf
Write the following information:
- port=27017
- dbpath=/mongo/data/mongodb_data/
- Logpath=/mongo/data/mongodb_log/mongodb.log
- Fork=true
- Logappend=true
- Noauth=true
Save exit.
27017--fork--dbpath=/mongo/data/mongodb_data/--logpath=/mongo/data/mongodb_log/mongodb.log--logappend
(7) using MONGO
- Sudo/usr/local/mongodb/bin/mongo
(8) Close MongoDB Service
(9) Restart MongoDB Service
- Sudo/usr/local/mongodb/bin/mongod--config/etc/mongodb.conf
2, Robomongo installation
0.9.0-linux-x86_64-0786489.tar.gz
- CD robomongo-0.9. 0-linux-x86_64-0786489 (if you move to a different directory, add the appropriate directory.) )
After extracting, save the Robomongo folder in a common software folder, because Robomongo will start directly from this folder.
(3) Start Robomongo
[Python]View PlainCopy
- ./robomongo
(4) Create a shortcut
Go to the installation directory, find the Robomongo executable file, first hold down the left hand drag it to the desktop first do not release, and then press ALT, a menu appears, select "Link Here", release and then create a good shortcut on the desktop.
MongoDB Environment Installation