Skip to content

Instantly share code, notes, and snippets.

@neatshell
Last active December 4, 2019 09:08
Show Gist options
  • Save neatshell/9639218 to your computer and use it in GitHub Desktop.
Save neatshell/9639218 to your computer and use it in GitHub Desktop.
Install script for mongodb on a centos64 vagrant box
#!/usr/bin/env bash
cat << 'EOF' >> /etc/yum.repos.d/mongodb.repo
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
EOF
yum -y install mongo-10gen mongo-10gen-server
mkdir -p /data/db
chown -R vagrant.vagrant /data/db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment