Skip to content

Instantly share code, notes, and snippets.

@OmgImAlexis
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OmgImAlexis/d8741394c4c599bdeed4 to your computer and use it in GitHub Desktop.
Save OmgImAlexis/d8741394c4c599bdeed4 to your computer and use it in GitHub Desktop.
Fresh centos 64 bit with Node and mongo
#!/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