Skip to content

Instantly share code, notes, and snippets.

@kristjanmik
Last active December 22, 2015 21:49
Show Gist options
  • Save kristjanmik/6535612 to your computer and use it in GitHub Desktop.
Save kristjanmik/6535612 to your computer and use it in GitHub Desktop.
On demand node.js server install script
#!/bin/bash
###Node.js ###
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo apt-get install -y python
sudo apt-get install -y g++
sudo apt-get install -y make
sudo apt-get install -y software-properties-common
sudo add-apt-repository --yes ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
###Mongodb###
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-10gen
###Git###
sudo apt-get install -y git-core
###Nginx###
sudo apt-get install -y nginx
sudo service nginx start
sudo update-rc.d nginx defaults
###Redis###
sudo apt-get install -y redis-server
###Node modules###
sudo npm install -g forever
###Java###
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
###Elasticsearch###
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb
sudo dpkg -i elasticsearch-0.90.3.deb
#sudo service elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment