Skip to content

Instantly share code, notes, and snippets.

@roscius
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save roscius/cbcd0dbc02b039c635f4 to your computer and use it in GitHub Desktop.

Select an option

Save roscius/cbcd0dbc02b039c635f4 to your computer and use it in GitHub Desktop.

###Install Oracle Java

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

####Check Java Version

java -version

###Install Elasticsearch

http://www.elasticsearch.org/overview/elkdownloads/

dpkg -i elasticsearch-...

####Config Changes

Edit the /etc/elasticsearch/elasticsearch.yml config file, uncomment network.bind_host and change to network.bind_host: localhost

Add script.disable_dynamic: true - this disables outside accesss to the server

####Start on server reboot

sudo update-rc.d elasticsearch defaults 95 10
sudo /etc/init.d/elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment