Skip to content

Instantly share code, notes, and snippets.

@marantz
Last active November 3, 2015 07:29
Show Gist options
  • Select an option

  • Save marantz/5270d55d4eef6175b396 to your computer and use it in GitHub Desktop.

Select an option

Save marantz/5270d55d4eef6175b396 to your computer and use it in GitHub Desktop.
MongoDB Start Shell
#!/bin/bash
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_mongod_01.conf
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_mongod_02.conf
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_mongod_03.conf
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_config_01.conf
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_config_02.conf
/opt/mongodb/bin/mongod -f /opt/mongodb/conf/shard_config_03.conf
echo ‘READY TO TAKE OFF DATABASE WAIT 10 SEC’;sleep 10
/opt/mongodb/bin/mongos -f /opt/mongodb/conf/shard_cluster.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment