Monday, June 8, 2015

Change MongoDB server port in CentOS 6.6

To change MongoDB server port in CentOS 6.6,

edit the following configuration:

sudo vi /etc/mongod.conf

port=10000

Restart the MongoDB server (mongod) as follows:

sudo /sbin/service mongod start

Reference:
http://docs.mongodb.org/manual/reference/configuration-options/

No comments:

Post a Comment