Home > Database > Mysql Tutorial > body text

Mongodb主从配置

WBOY
Release: 2016-06-07 17:41:21
Original
894 people have browsed it

一:使用命令行方式配置mongodb主从[root@server11~]#/usr/local/mongodb/bin/mongod--bind_ip192.168.1.112-port3306--dbpath/data/mongodb/db1/-..

一:使用命令行方式配置mongodb主从

 二:连接测试数据同步情况 

 

三:创建repl用户,服务器空间,主要用于后续的安全认证同步

四:创建普通用户yang,美国服务器,master端创建即可

五:重启mongodb主从实例,以auth方式启动,用户登录测试

再次登录web界面需要输入用户名和密码!

五:使用配置文件管理mongodb

参考文章:

本文出自 “斩月” 博客,香港服务器,谢绝转载!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!