L
L
lemme2016-04-30 19:29:53
MongoDB
lemme, 2016-04-30 19:29:53

How to install mongodb on ubuntu 16.04?

I put it on off. dock, but for 14.04 because for 16.04 there is not yet.
https://docs.mongodb.org/manual/tutorial/install-m...
But it doesn't run.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Shatokhin, 2016-04-30
@lemme

Create a service file for systemd: "/lib/systemd/system/mongod.service" with the content:

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

We use the standard command: "sudo service mongod restart"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question