mongodb shard cluster centos 7

wget 官网
mkdir /data
mkdir /data/configdb
mkdir /data/db
mkdir /data/db2
mkdir /data/db3
mkdir /data/log

touch mongod.conf
touch mongos.conf
touch mongo1.conf
touch mongo2.conf
touch mongo3.conf

./mongod –configsvr –port 27010 –fork –logpath=/data/log/mongod.conf –logappend
./mongos -configdb localhost:27010 –port 27011 –fork –logpath=/data/log/mongos.conf –logappend
./mongod –port 27012 –dbpath /data/db –fork –logpath=/data/log/mongo1.conf –logappend
./mongod –port 27013 –dbpath /data/db2 –fork -logpath=/data/log/mongo2.conf –logappend
./mongod –port 27014 –dbpath /data/db3 –fork -logpath=/data/log/mongo3.conf –logappend

./mongo –port 27011 –host localhost

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

mongodb shard cluster centos 7

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭