简体   繁体   中英

Is it possible to bind Mongodb to local and remote host simultaneously?

Since I've changed bind_ip of mongodb in /etc/mongod.conf to my valid IP, I can not connect to mongodb locally. is it possible to connect using both IPs? currently if I activate both of these, the second one will be activated:

bind_ip=127.0.0.1
bind_ip=111.111.111.111

bind_ip采用逗号分隔的值列表,因此将它们组合为以下项的单个条目:

bind_ip = 127.0.0.1,111.111.111.111

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM