Advertisement
opexxx

installMongoDB.sh

Nov 24th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. clear
  4. echo 'Going to install MongoDB for ya... you NoSQL groupie!!...'
  5.  
  6. echo '[10gen]' >> /etc/yum.repos.d/10gen.repo
  7. echo 'name=10gen Repository' >> /etc/yum.repos.d/10gen.repo
  8. echo 'baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64' >> /etc/yum.repos.d/10gen.repo
  9. echo 'gpgcheck=0' >> /etc/yum.repos.d/10gen.repo
  10. echo 'enabled=1' >> /etc/yum.repos.d/10gen.repo
  11.  
  12. yum install -y mongo-10gen mongo-10gen-server
  13.  
  14. service mongod start
  15. chkconfig mongod on
  16. clear
  17. echo 'MongoDB is installed, running and set to auto-start on reboots.... your still a NoSQL groupie...'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement