In this tutorial, you will be introduce how to install MongoDB on Ubuntu Server 14.04
Step 1: make sure your server is up-to-date
1
2
| apt-get update
apt-get dist-upgrade
|
Step 2: install MongoDB
1
| apt-get install -y mongodb
|
After installing, MongoDB service automatically starts. You can check by typing:
And the screen will display:
1
| mongodb 2163 0.8 1.1 382048 46256 ? Ssl 15:36 0:03 /usr/bin/mongod --config /etc/mongodb.conf
|
More
1. Start MongoDB
Issue the following command to start mongodb:
1
| sudo service mongodb start
|
2. Stop MongoDB
Issue the following command to stop mongodb:
1
| sudo service mongodb stop
|
3. Restart MongoDB
Issue the following command to restart mongodb:
1
| sudo service mongodb restart
|
0 comments:
Post a Comment