Under Windows MongoDB configuration and remote connections

The basic operation of
MongoDB basic installation https://blog.csdn.net/heshushun/article/details/77776706
start and configure MongoDB service reference blog https://blog.csdn.net/ljk168/article/details/79452895
create MongoDB User name and account reference blog https://www.cnblogs.com/wuyubing/p/4897387.html

Remote connectivity solutions MongoDB failure
1, mongodb configuration file bind_ip default is 127.0.0.1, the machine can be connected only by default. In this case, it is necessary to configure bind_ip 0.0.0.0, the acceptance of any IP connections.
Note: mongo.cfg file in the bin directory changes

2, the firewall blocks port 27017

Under win10 start slogan as follows: Control Panel> System Security> windows firewall> Advanced settings> Inbound Rules> New Rule> Port> tcp specific port input 27017> Allow Link> Setup or know how people can conduct their own additional settings> taken by default rules can be completed to determine the name.

Note: Restart mongod service.

Guess you like

Origin www.cnblogs.com/xubao/p/12319737.html