Skip to content

Instantly share code, notes, and snippets.

@vaibhavmule
Last active September 2, 2017 04:27
Show Gist options
  • Save vaibhavmule/295420b38385612adf3c to your computer and use it in GitHub Desktop.
Save vaibhavmule/295420b38385612adf3c to your computer and use it in GitHub Desktop.
ohhdl-ubuntu-install.sh
# install git
sudo apt get install git
# install elasticsearch
sudo apt-get install build-essential libssl-dev
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get update && sudo apt-get install elasticsearch
# install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java8-installer
# install nvm node and npm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
source ~/.profile
nvm install stable
nvm use stable
nvm alias default stable
nvm use default
# install pm2
npm install -g pm2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment