Last active
December 4, 2019 09:08
-
-
Save neatshell/9639218 to your computer and use it in GitHub Desktop.
Install script for mongodb on a centos64 vagrant box
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
#!/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