mongodb 连接数设置

db.serverStatus().connections;

dbpath=/opt/mongodb/db/
logpath=/opt/mongodb/logs/mongod.log
port=28001
logappend=true
fork = true
directoryperdb=true
#auth=true

maxConns=30000

重启服务器,
但现在最大连接数还是默认:
> db.serverStatus().connections;
{ "current" : 1, "available" : 819, "totalCreated" : NumberLong(8) }

猜你喜欢

转载自cooler1217.iteye.com/blog/2072736
今日推荐