7 lines
362 B
Bash
Executable File
7 lines
362 B
Bash
Executable File
#!/bin/sh
|
|
mkdir -p /tmp/mongodb/db /tmp/mongodb/log
|
|
mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &
|
|
sleep 10
|
|
mongosh --eval "rs.initiate({_id: 'rs0', members:[{_id: 0, host: '127.0.0.1:27017'}]});"
|
|
sleep 15
|