mongodb 远程连接 详解
Jun 07, 2016 pm 04:32 PMmongodb远程连接配配置,分以下4步。 1,添加管理员账 use adminswitched to db admin db.addUser('tank','test'); 2,配置mongodb.conf #bind_ip = 127.0.0.1 //注释此行auth = true //将此行前的注释去掉 3,重启mongodb /etc/init.d/mongod 4,防火墙开放270
mongodb远程连接配配置,分以下4步。
1,添加管理员账
> use admin switched to db admin > db.addUser('tank','test');
2,配置mongodb.conf
#bind_ip = 127.0.0.1 //注释此行 auth = true //将此行前的注释去掉
3,重启mongodb
/etc/init.d/mongod
4,防火墙开放27017端口
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 27017 -j ACCEPT
5,测试
mongdb 远程连接
原文地址:mongodb 远程连接 详解, 感谢原作者分享。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Which version is generally used for mongodb?

The difference between nodejs and vuejs

Detailed explanation of division operation in Oracle SQL

How to connect OnePlus watch to Bluetooth headset_How to connect OnePlus watch to Bluetooth headset

What are the advantages of mongodb database

Where is the database created by mongodb?

Steps to connect game controller to Gohan Arcade

Detailed explanation of the role and usage of PHP modulo operator
