Mongo installation using Tarball method
Mongo installation using Tarball method
(Below step needs to be done only in actual work env, not required for learning purpose)
10. By default mongo using on mongod user account, create a mongod user and group, ensure
that mongod belongs to the group then set the owner and group of the directories
sudo chown -R mongod:mongod /mongodb/data
sudo chown -R mongod:mongod /mongodb/data/log
# mongod.conf
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1,192.168.134.112 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses
or, alternatively, use the net.bindIpAll setting.
#security:
#replication:
12. Start the mongo service using below command
mongod -f /mongodb/mongod.conf &