Dit Had Niet Live Op tv Mogen Worden Vertoond.

Quiero hablar sobre un programa de televisión popular que mi esposa y yo hemos estado viendo en Netflix. Es la historia de un hombre de familia, un hombre de ciencia, un genio que se enamoró de la…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




What will we do

GPG keys of the software distributor are required by the Ubuntu package manager apt (Advanced Package Tool) to ensure package consistency and authenticity. Run this command to import MongoDB keys to your server.

Create a MongoDB list file in /etc/apt/sources.list.d/ with this command:

update the repository with the apt command:

Now you can install MongoDB by typing this command:

We have to create a new mongodb systemd service file.

If you are familiar with vim do this method.

Go to /lib/systemd/system directory and create the new mongodb service file ‘mongod.service’ with vim.

Paste script below:

Save the file and exit.

Go /lib/systemd/system directory, open terminal and type this command to change permission:

Open it from any text editor and paste script below:

Save the file and exit.

Now update the systemd service with command below:

Start mongodb and add it as service to be started at boot time:

Now check that mongodb has been started on port 27017 with the netstat command.

Now mongoDB is started and you can play with it. When you restart computer nothing to do. Automatically mongoDB is starting.

Add a comment

Related posts:

Should you ask your parents to go guarantor?

Having your parents act as a guarantor can make it much easier to buy a property with a small deposit. For many reasons, it isn’t an option for everyone. You need to be fortunate enough to have…

Top 10 of the best cryptocurrency exchanges

We tried to create a rating of the best cryptocurrency exchanges. The popularity of cryptocurrencies is growing on the Internet day by day. With the advent of bitcoin investors began to think that it…

The Power Behind the Word Racism

I had always known how effective a single word can be. Ever since I learned how to read in grade school, I realized how words play a bigger part in my life than I failed to admit. Words can hurt…