Skip to content

Instantly share code, notes, and snippets.

@dstroot
Created March 25, 2012 17:38

Revisions

  1. dstroot revised this gist Mar 25, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install-mongo.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash
    echo "*****************************************"
    echo " Add the 10gen repository - after you press
    echo " enter add the following lines and then
    echo " Add the 10gen repository - after you press"
    echo " enter add the following lines and then"
    echo " cntl-X to save:"
    echo " [10gen]"
    echo " name=10gen Repository"
  2. dstroot revised this gist Mar 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-mongo.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    !#bin/bash
    #!/bin/bash
    echo "*****************************************"
    echo " Add the 10gen repository - after you press
    echo " enter add the following lines and then
  3. dstroot revised this gist Mar 25, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install-mongo.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    !#bin/bash
    echo "*****************************************"
    echo " add the 10gen repository "
    echo " after you press enter add the following lines"
    echo " and then cntl-X to save:"
    echo " Add the 10gen repository - after you press
    echo " enter add the following lines and then
    echo " cntl-X to save:"
    echo " [10gen]"
    echo " name=10gen Repository"
    echo " baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64"
  4. dstroot revised this gist Mar 25, 2012. 1 changed file with 11 additions and 6 deletions.
    17 changes: 11 additions & 6 deletions install-mongo.sh
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,15 @@
    !#bin/bash
    echo "*****************************************"
    echo " add the 10gen repository "
    echo " after you press enter add the following lines"
    echo " and then cntl-X to save:"
    echo " [10gen]"
    echo " name=10gen Repository"
    echo " baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64"
    echo " gpgcheck=0"
    echo "*****************************************"
    read -p "Press [Enter] to continue..."
    nano /etc/yum.repos.d/10gen.repo
    # add the following lines and save the file
    #########################################
    #[10gen]
    #name=10gen Repository
    #baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
    #gpgcheck=0

    # install MongoDB
    sudo yum install mongo-10gen and mongo-10gen-server
  5. dstroot created this gist Mar 25, 2012.
    18 changes: 18 additions & 0 deletions install-mongo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    nano /etc/yum.repos.d/10gen.repo
    # add the following lines and save the file
    #########################################
    #[10gen]
    #name=10gen Repository
    #baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
    #gpgcheck=0

    # install MongoDB
    sudo yum install mongo-10gen and mongo-10gen-server

    # start the service
    sudo service mongod start

    # install service
    sudo chkconfig mongod on