B
B
borodka_lenina2015-11-02 17:46:01
MongoDB
borodka_lenina, 2015-11-02 17:46:01

How to add mongodb to autoload with certain parameters?

Hello. Actually the very essence of the question:
when you restart the server, you need to run several mongo instances with different configs and launch options.
For example:
mongod --port 29000 --dbpath /data/arb --replSet "rs"
mongod --port 28000 --dbpath /data/data1 --replSet "rs"
How to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antony Ryabov, 2015-11-02
@borodka_lenina

systemd

O
Oleg, 2015-11-02
@wani

How about putting all the options in the MongoDB config file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question