#!/bin/bash 

#刷新环境变量
source /.env



#拷贝密钥
rm -rf $MongoKeyStore/keyfile
mkdir -p $MongoKeyStore/
cp /keyfile.tmp $MongoKeyStore/keyfile
chmod -R 400 $MongoKeyStore/keyfile

#初始化日志文件
mkdir -p $MongoStorePath/logs
echo "" >> $MongoStorePath/logs/mongo.log


#启动
mongod --config $MongoConfPath/mongo_shard.conf --replSet $MongoSetsName --setParameter maxTransactionLockRequestTimeoutMillis=3000
