Last active
March 17, 2022 13:00
-
-
Save tanvirstreame/56142d5c12ad5c98894c9d4461d829fd to your computer and use it in GitHub Desktop.
Mongo extra instance in same server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /etc/mongod.conf /etc/mongod2.conf | |
cd /lib/systemd/system | |
cp mongod.service mongod2.service | |
edit ta service config and add /etc/mongod2.conf | |
sudo chown -R mongodb:mongodb /root/database/replica_database* | |
sudo systemctl start mongod2.service | |
sudo systemctl status mongod2.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment