Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (13.1k points)
I have a NodeJS application in Azure. Also I'm using Bitnami MongoDB, but the default port is not secured. That's why I have to change the port to 27171. But it is throwing an error. Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

First of all change the config port of your MongoDB. After that, edit the custom mongo client:

$ sudo vim `which mongo`

Once done, change the socket port and try it running:

- /opt/bitnami/mongodb/tmp/mongodb-27017.sock

+ /opt/bitnami/mongodb/tmp/mongodb-27171.sock 

I hope this will help.

Want to become an Azure expert? join azure certification now!!

Related questions

0 votes
1 answer
asked Jan 28, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
0 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...