Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start elastic search using command terminal in ubuntu

While installing elastic search in ubuntu-16.04, my process wasn't completed even after several minutes. I have written 'bin/elasticsearch' as my last command in the terminal suring installation. What am I doing wrong ?

like image 501
Richa Jain Avatar asked May 11 '16 12:05

Richa Jain


2 Answers

For installing Elasticsearch you just need to download and decompress the file.

Then go to you Elasticsearch folder and type

./bin/elasticsearch

The server will start, but if you exit the terminal or press Ctrl+X it will stop.

You can add -d if you want to run it as a deamon in the background.

To see if Elasticsearch is running, just type

curl 'http://localhost:9200/?pretty'

or

ps aux | grep elastic

To stop the service, just kill the process.

like image 58
angoru Avatar answered Oct 09 '22 07:10

angoru


install the .tar file from the website. Extract it. Go to its bin folder and do a "./elasticsearch". It'll be up and running on port 9200

like image 31
Aquib Avatar answered Oct 09 '22 07:10

Aquib