Last active
December 18, 2015 19:49
-
-
Save gullitmiranda/5835690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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