Created
September 12, 2016 09:56
-
-
Save aNd1coder/c88c928a54bc865d76dd61850f4ef28f to your computer and use it in GitHub Desktop.
远程连接mongodb时,27017端口连接不上的解决办法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 开放 27017 端口访问 | |
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 27017 -j ACCEPT | |
# 修改 mongod.conf 端口绑定 | |
bindIp: 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment