Skip to content

Instantly share code, notes, and snippets.

@gullitmiranda
Last active December 18, 2015 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gullitmiranda/5835690 to your computer and use it in GitHub Desktop.
Save gullitmiranda/5835690 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "##### Mudando para o usuário root"
sudo su -
echo "##### Adicionando o repositório da 10gen"
sudo echo "[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0" > /etc/yum.repos.d/10gen.repo
echo "##### install MongoDB"
sudo yum install -y mongo-10gen and mongo-10gen-server
echo "##### start the service"
sudo service mongod start
echo "##### install service"
sudo chkconfig mongod on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment