Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgda-5.0-common libgranite-common libgranite3 libgsignon-glib1
libindicate5 libjs-jquery libnoise-core0 libtagc0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
0 upgraded, 5 newly installed, 0 to remove and 168 not upgraded.
Need to get 47.4 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Get:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2/multiverse amd64 mongodb-org-shell amd64 3.2.6 [5,257 kB]
Get:2 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2/multiverse amd64 mongodb-org-server amd64 3.2.6 [9,541 kB]
Get:3 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2/multiverse amd64 mongodb-org-mongos amd64 3.2.6 [4,337 kB]
The above command will install several packages containing latest stable version of MongoDB along with helpful management tools for the MongoDB server.
Once MongoDB has been installed, you will need to create system unit file, which determines how to start or stop the service, when should it be automatically started at boot, and whether it is dependent on other software to run.
You can do this by creating mongodb.service file inside /etc/systemd/system directory:
Once you have finishes, you can start the newly created service using the following command:
sudo systemctl start mongodb
You can also check that the service has started properly, run the following command:
sudo systemctl status mongodb
You should see the following output:
mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/etc/systemd/system/mongodb.service; disabled; vendor preset:
Active: active (running) since Fri 2016-06-20 11:30:52 IST; 2min 23s ago
Main PID: 7078 (mongod)
Tasks: 16 (limit: 512)
└─7078 /usr/bin/mongod --quiet --config /etc/mongod.conf
June 20 11:30:52 linux systemd: Started High-performance, schema-free document
lines 1-9/9 (END)
Now, you will need to enable the MongoDB service that start automatically, when system starts.
You can do this by running the following command:
sudo systemctl enable mongodb
You should see the following output:
Created symlink from /etc/systemd/system/multi-user.target.wants/mongodb.service to /etc/systemd/system/mongodb.service.
I hope you can now easily install MongoDB on your system. MongoDB is a great NoSQL database that can be configured quickly and used in any of our applications. For Node applications, you can start up MongoDB quickly so that we can get to the fun part, building applications.
You can create an email email filters through your cPanel control panel which is where you manage your hosting account. Email filters can be set up to target specific word, subject, from or to. Emails that are filtered out can be sent to a different email, deleted, delivered to a...
If you find your cPanel disk space filling up, or an email address has hit its disk space quota, cPanel has a helpful built in Email Disk Usage tool. This will provide you with a simple to understand breakdown of how much disk space each folder for a particular email...
Although WHM will normally automatically keep itself up to date, you may want to manually check for server updates / push through an update that is pending, or it may be that you have automatic updates switched off on your cPanel server. In this guide we will show you how...