Professional Documents
Culture Documents
AWS EC2 - Full Config
AWS EC2 - Full Config
================================================================
##On the 'ExecStart' line 9, add the new option '--auth'.
ExecStart=/usr/bin/mongod --auth --config /etc/mongod.conf
================================================================
=======================================
# network interfaces
net:
port: 26016
bindIp: 0.0.0.0
security:
authorization: 'enabled'
=======================================
sudo systemctl daemon-reload
sudo service mongod restart
sudo systemctl status mongod
sudo systemctl enable mongod.service
sudo systemctl status mongod
mongo --port 26016 --authenticationDatabase "admin" -u username -p
db.enableFreeMonitoring()
db.enableFreeMonitoring({"userReminder": "username"})
copy the URL link
exit