我在RHEL AWS实例上安装并启动了mongodb。现在我想从我的本地机器连接到mongodb服务器但是我无法这样做。
我更改了mongodb.conf文件中的bind_ip参数,并且还为AWS实例的安全组添加了规则,以允许端口27017上的任何入站请求连接。我错过了什么吗?
MongoDB版本 - 3.4.14 AWS实例 - RHEL
提前致谢!!!
添加mongod.conf文件
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /home/ec2-user/AutoMaTics/setup/dbData
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
# network interfaces
net:
port: 27017
# bindIpAll: true
# bindIp: 127.0.0.1,13.127.31.137 # Listen to local interface only, comment to listen on all interfaces.
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp: