Search Suggest

Bài đăng

How to install Elastic Search into Ubuntu 18.04 LTS server

This is an easy to follow how-to and list of commands to install ElasticSearch into Ubuntu 18.04 LTS (bionic beaver) server

Pre-requisites:

apt-get update


Install Java JRE:

apt-get install default-jre


Add APT repository:

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

echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list


Update APT system again:

apt-get update




---------------------------------------
THE REST OF THE COMMANDS BELOW ARE FOR STARTING, STOPING AND MAINTAINING ELASTICSEARCH (NOT PART OF INSTALLATION)

Enable Elasticsearch Service (to be able to autostart)

systemctl enable elasticsearch.service



DONE - How to use your new ElasticSearch server

Edit configuration file:

nano /etc/elasticsearch/elasticsearch.yml

Default LOG file location:

/var/log/elasticsearch

Default DATA location:

/var/lib/elasticsearch


To Start ElasticSearch:

systemctl start elasticsearch

To Stop ElasticSearch:

systemctl stop elasticsearch



To Check Status of ElasticSearch:

systemctl status elasticsearch

Đăng nhận xét