g33k57
8/17/2019 - 5:45 PM

Install script for mongodb on a centos64 vagrant box

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