In this blog we mainly talk about the access control including limitation of IP, setting listen port and usage of username and password. In the official document, MongoDB server start without the argument, so once the connection is created, the remote Clien T could do everything. But in the productive environment it's advisable to take security into consideration and to enhance the security protectio N. For the sake of lowing the potential risk, the above measures could is taken to deal with these problems.
First, Binding IP address to access MongoDB.
Mongodb could put restriction on the IP address thought argument ' bind_ip ' when being started. For example, now we have limit IP address[192.168.55.165] to access the server.
Secondly, use the certain port
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc3himdg0mtkwmtexng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/center ">
Thirdly, add user and password
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc3himdg0mtkwmtexng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/center ">
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc3himdg0mtkwmtexng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/center ">
"MongoDB" the Access control of MongoDB