Home > Database > Mysql Tutorial > body text

MongoDB只允许本地访问

WBOY
Release: 2016-06-07 15:28:51
Original
1593 people have browsed it

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

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

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template