Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Install:
- # chmod +x mongo_conn.sh
- # ./mongo_conn.sh
- MONGO_USER=""
- MONGO_PASS=""
- HOST_1="10.135.7.252"
- HOST_2="10.135.4.81"
- HOST_3="10.135.3.100"
- REPLICA_SET="flyer-dev-shard-0"
- mongo "mongodb://${HOST_1}:27017:27017,${HOST_2}:27017,${HOST_3}:27017/test?replicaSet=${REPLICA_SET}" \
- --ssl --authenticationDatabase admin \
- --username $MONGO_USER \
- --password $MONGO_PASS
Add Comment
Please, Sign In to add comment