Home  >  Article  >  Database  >  MongoDB只允许本地访问

MongoDB只允许本地访问

WBOY
WBOYOriginal
2016-06-07 15:28:511588browse

不需要用iptables帮忙,仅在mongodb.conf文件中添加一行配置即可: bind_ip = 127.0.0.1 然后重新启动服务即可。

不需要用iptables帮忙,仅在mongodb.conf文件中添加一行配置即可:

bind_ip = 127.0.0.1
然后重新启动服务即可。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn