Last active
August 29, 2015 14:01
-
-
Save OmgImAlexis/d8741394c4c599bdeed4 to your computer and use it in GitHub Desktop.
Fresh centos 64 bit with Node and mongo
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
#!/bin/bash | |
sudo yum update -y | |
echo "[mongodb]" >> /etc/yum.repos.d/mongodb.repo | |
echo "name=MongoDB Repository" >> /etc/yum.repos.d/mongodb.repo | |
echo "baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/" >> /etc/yum.repos.d/mongodb.repo | |
echo "gpgcheck=0" >> /etc/yum.repos.d/mongodb.repo | |
echo "enabled=1" >> /etc/yum.repos.d/mongodb.repo | |
sudo yum install mongodb-org -y | |
sudo service mongod start | |
sudo chkconfig mongod on | |
sudo rpm --import https://fedoraproject.org/static/0608B895.txt | |
sudo rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
sudo yum install nodejs npm --enablerepo=epel -y | |
clear | |
echo "Mongo and node.js are installed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment