Friday, 4 June 2021

Run MongoDB server on specific port

While starting the MongoDB server, you can explicitly specify the port using --port option.

 

Example

mongod --port 8888 --dbpath /Users/Shared/data/db

Previous                                                    Next                                                    Home

No comments:

Post a Comment