- run command:
+ firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="103.81.86.16" port protocol="tcp" port="27017" accept'
- vi /etc/mongod.conf
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1,mongodb_server_ip