配置如下
s1
mongod –configsvr –dbpath /data/config-wt/data –port 27119 –bind_ip 192.168.0.241 –fork –journal –logpath /data/config-wt/log/log.log –storageEngine wiredTiger
mongod –shardsvr –dbpath /data/share-wt/data –port 27118 –bind_ip 192.168.0.241 –fork –journal –logpath /data/share-wt/log/log.log –storageEngine wiredTiger
s2
mongod –configsvr –dbpath /data/config-wt/data –port 27119 –bind_ip 192.168.0.242 –fork –journal –logpath /data/config-wt/log/log.log –storageEngine wiredTiger
mongod –shardsvr –dbpath /data/share-wt/data –port 27118 –bind_ip 192.168.0.242 –fork –journal –logpath /data/share-wt/log/log.log –storageEngine wiredTiger
s3
mongod –configsvr –dbpath /data/config-wt/data –port 27119 –bind_ip 192.168.0.243 –fork –journal –logpath /data/config-wt/log/log.log –storageEngine wiredTiger
mongod –shardsvr –dbpath /data/share-wt/data –port 27118 –bind_ip 192.168.0.243 –fork –journal –logpath /data/share-wt/log/log.log –storageEngine wiredTiger
master
mongos –configdb s1:27119,s2:27119,s3:27119 –bind_ip 192.168.0.240 –port 27017 –fork –logpath /data/mongos-wt/log/log.log
3.0 新引擎导数据是快,压缩比也高
但是进入数据库后,show tables没有表,我已经导了好多表进去,请问这个需要要怎么解决
HI ~
db.getCollectionNames()
和 show collections 有返回么?
mongos> db.getCollectionNames()
[ ]
mongos> db
data
mongos> db.getCollectionNames()
[ ]
mongos> show collections;
mongos>
是的,你说的对,我的客户端是2.6的,哎,被自己坑了,升级成3.0就没有问题了,打扰大家了