Installing ElasticSearch on Azure - Ubuntu 14.04

wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
```

```
echo "deb http://packages.elastic.co/elasticsearch/1.6/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.6.list
```

```
sudo apt-get update && sudo apt-get install elasticsearch
```

```
sudo update-rc.d elasticsearch defaults 95 10
```

```
sudo vim /etc/init.d/elasticsearch
```

```
ES_HEAP_SIZE=1g #50% of total RAM
```

```
sudo service elasticsearch start
```