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 was creat
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 was created, the remote client could do everything. but in the productive environment it’s advisable to take security into consideration and to enhance the security protection. for the sake of lowing the potential risk, the above measures could be 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 only limit ip address[192.168.55.165] to access the server.


Secondly, use the certain port


Difeye是一款超轻量级PHP框架,主要特点有: Difeye是一款超轻量级PHP框架,主要特点有: ◆数据库连接做自动主从读写分离配置,适合单机和分布式站点部署; ◆支持Smarty模板机制,可灵活配置第三方缓存组件; ◆完全分离页面和动作,仿C#页面加载自动执行Page_Load入口函数; ◆支持mysql,mongodb等第三方数据库模块,支持读写分离,分布式部署; ◆增加后台管理开发示例
Thirdly, add user and password











