2.apt-get install -y language-pack-en-base
1. 配置完成后先apt-get update在apt-get upgrade更新软件包,
2. 在etc中将mongodb.conf中的ip改为0.0.0.0,robomongo可连接mongodb
3. 在admin数据库中添加用户方法db.createUser({user:'root',pwd:'root',roles:['userAdminAnyDatabase']})
4 mongos分片时出现问题,开启routeprocess时,config应该配置副本集(3.4以后)config副本集创建
5.创建副本集后执行./mongos --port 40000 --configdb configs/172.16.46.95:21000 --fork --logpath=/www/mongoDB/shard/log/route.log开启routeprocess
6. 之前robomongo连不上服务器27017是因为运行mongod执行的是mongodb.cnf配置文件,所以应该绑定ip0.0.0.0,etc中的配置文件没有运行