Guest User

Untitled

a guest
Oct 19th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Install:
  4. # chmod +x mongo_conn.sh
  5. # ./mongo_conn.sh
  6.  
  7. MONGO_USER=""
  8. MONGO_PASS=""
  9. HOST_1="10.135.7.252"
  10. HOST_2="10.135.4.81"
  11. HOST_3="10.135.3.100"
  12. REPLICA_SET="flyer-dev-shard-0"
  13.  
  14. mongo "mongodb://${HOST_1}:27017:27017,${HOST_2}:27017,${HOST_3}:27017/test?replicaSet=${REPLICA_SET}" \
  15. --ssl --authenticationDatabase admin \
  16. --username $MONGO_USER \
  17. --password $MONGO_PASS
Add Comment
Please, Sign In to add comment