07月04, 2017

mongodb安装

env

yum install numactl -y

rpm install

rpm -ivh Percona-Server-MongoDB-34-mongos-* \
Percona-Server-MongoDB-34-shell-* \
Percona-Server-MongoDB-34-tools-* \
Percona-Server-MongoDB-34-mongos-* \
Percona-Server-MongoDB-34-server-*

初始化密码:

/usr/bin/percona-server-mongodb-enable-auth.sh

uri链接

mongodb://userName:password@host:port/db?authSource=admin

本文链接:https://blog.jnliok.com/post/mongodb-install.html

-- EOF --

Comments