How to install Elasticsearch on Linux Server

Elasticsearch is one of the components of ELK, which is commonly used for log analytics, full-text search, security intelligence, and business analytics.Elasticsearch requires JAVA 8. It is highly recommended that you should use Oracle JDK, which is higher than JDK version 1.8.0_131.

For simplicity, you can use RPM file to install Elasticsearch. In my case, I will prefer to install it from “TAR” file in order to define another installation directory. All index and binary file will be kept under “/appdata” directory. However, if you prefer to install from RPM or DEB base package, you do not need to follow those steps. Just download binaries from this link and perform the installation.

To Perform default Installation Steps:

#rpm -ivh <logstash_package_name>
#dpkg -i <logstash_package_name>


Manual Installation Steps

Step 1: Install JDK

Download JDK from this link and extract binaries under /usr/local/java. Then create symbolic links with “ln -s” command.

#mkdir  /usr/loca/java
#cp <jdk.tar.gz> /usr/loca/java
#cd /usr/loca/java
#tar  -xzvf  <jdk.tar.gz>
#unlink  java
#ln  -s  /usr/local/java/jdk1.8.0_171/bin/java /usr/bin/java
#java  -version

Step 2: Download and extract tar file

#curl -L -O
#cp  elasticsearch-6.4.2.tar.gz /appdata
#tar -xvf elasticsearch-6.4.2.tar.gz

Step 3: Create Service file and start service

I have installed binaries under /appdata mount point. You should check your configuration. If you have installed to another directory you should edit this script and change /appdata to yours.

#vi  /usr/lib/systemd/system/elasticsearch.service

ExecStart=/appdata/elasticsearch/bin/elasticsearch \
-p ${PID_DIR}/ \

# StandardOutput is configured to redirect to journalctl since
# some error messages may be logged in standard output before
# elasticsearch logging system is initialized. Elasticsearch
# stores its logs in /var/log/elasticsearch and does not use
# journalctl by default. If you also want to enable journalctl
# logging, you can simply remove the "quiet" option from ExecStart.
# Specifies the maximum file descriptor number that can be opened by this process
# Specifies the maximum number of bytes of memory that may be locked into RAM
# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/sysconfig/elasticsearch
# Disable timeout logic and wait until process is stopped
# SIGTERM signal is used to stop the Java process
# Java process is never killed
# When a JVM receives a SIGTERM signal it exits with code 143
# Built for distribution-5.4.0 (distribution)

Step 4: Change  Elasticsearch YML file

I only edited these configuration sets. Please check configuration file and edit, as you need.

Data Path: /appdata/elasticsearch/data

Log Path: /appdata/elasticsearch/logs

Listen Network: localhost

Port: 9200

# cat /appdata/elasticsearch/config/elasticsearch.yml |grep  -v  '#' <strong>/appdata/elasticsearch/data</strong>
path.logs: /appdata/elasticsearch/logs
http.port: 9200 

Step 5: Start Elasticsearch

#systemctl enable elasticsearch
#systemctl start elasticsearch


I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me


  1. Operation Intercept imposed strict, punitive searches of traffic along on the U. viagra in india does viagra expire

  2. This is filled with fluid and nerves, and is called the cochlea. does viagra make you bigger

  3. Treatment for sciatica focuses on relieving pressure and inflammation. viagra online canada

  4. I have been the birth control pill Aleese since college. safe generic viagra online

  5. Catatonic disorder due to GMC is not a well-studied phenomenon, and its prevalence has not been clearly established. generic viagra or cialis generic viagra without a doctor prescription

  6. Influenza is a contagious disease that attacks the respiratory tract, including the nose, throat and lungs. cheap generic viagra review

  7. Your doctor can also review the drugs you are taking. online generic viagra prescription buying viagra online from canada

  8. Its anti-inflammatory activity is poor. approved generic viagra

  9. Her father trailed at in a motorboat, so she could radio him for help if she had an attack. where can you buy real generic viagra

  10. More Info Find out about the hidden eye health dangers of UV TheraTears has patented nutrients that match your natural tears. generic viagra no prescription best viagra online

  11. Read more Tinnitus Relaxation techniques, regular exercise and improving your sleep can help. free shipping generic viagra

  12. The immune system does not recognize the affected cells as normal parts of the body, causing a T-cell-mediated immune response. generic viagra online

  13. Peripheral cyanosis: if present without central cyanosis, is a sign of decreased peripheral perfusion or impaired gas diffusion, and not necessarily hypoxia. viagra generic lowest price

  14. Steven Horng shows Google Glass that he and other doctors will use to read patient records. is generic viagra as good as real viagra - - cheap generic viagra co uk french index

  15. I highly recommend American Medical Supply for anyone who is an at home caregiver and needs equipment. online prescription viagra

  16. If pulling is stopped before scarring to the scalp then your hair will grow back normally. is there a generic form of viagra

  17. Reply Can anyone tell me what this is? where can i buy generic viagra when generic viagra

  18. If you barely brush your skin against the plant, a rash of red pimples, even blisters, can break out. no prescription viagra online

  19. Tea tree oil is very strong, so apply only a drop or use some carrier oil like olive oil to dilute it. cialis viagra levitra generic viagra patent expiration generic

  20. Africa's drug habit 2. back generic guarantee money viagra

  21. I ordered both o them online yesterday after reading your advice. get viagra prescribed online

  22. Yesterday I broke a L-Lysine tablet in half before taking it, to give my system a head start on it. online viagra

  23. My father knew about it and took me to the hospital for medical attention. prescription for viagra online

  24. The pathogens that cause STDs may be BACTERIA, viruses, or parasites. viagra samples online

  25. canadian pharmacy generic viagra buy viagra online cheap india generic viagra

  26. cheap viagra pills online best generic viagra forum buying viagra online with paypal

  27. viagra met voorschrift chuck norris viagra ad

  28. genuine viagra drug similiar to viagra

  29. viagra substitute over counter buy cheap viagra online viagra coupons and discounts

  30. gnc product like viagra buy generic viagra and cialis

  31. droga principal del viagra viagra generika was ist das daily cialis plus viagra

  32. Buy viagra over the counter australia canadian pharmacy viagra uk

  33. Viagra pills price in south africa female viagra where to buy

  34. Can you buy viagra mexico buy real viagra uk

  35. Sildenafil price australia viagra cream price

  36. Sildenafil 50 mg tablet cheap female viagra online

  37. Female viagra capsules in india buy female viagra uk

  38. Best viagra buy generic viagra online with mastercard

  39. Viagra free delivery can you buy generic viagra

  40. Female viagra medication where can i get viagra online

  41. Female viagra pill price over the counter viagra pills

  42. Generic sildenafil paypal generic viagra fast delivery

  43. Viagra on line how to buy genuine viagra online

  44. buy sildenafil viagra where to buy female viagra in us where to get cheap viagra

  45. Sildenafil 10 mg daily viagra in women

  46. Cheap viagra generic can you safely buy viagra online

  47. How much is generic viagra in mexico non generic viagra

  48. Generic viagra cost female viagra online australia

  49. Viagra 60 mg sildenafil 20 mg online no prescription

  50. Cheap generic viagra online usa price comparison viagra

  51. Viagra cream australia canadian viagra paypal

  52. Viagra online canada pharmacy cost of viagra 2017

  53. Viagra 50 generic viagra where to buy

  54. Female viagra medicine price in india cost viagra

  55. Sildenafil 25 mg daily sildenafil 50 mg price

  56. Prescription viagra cost viagra pills online australia

  57. 360 viagra viagra prescription nz

  58. Generic viagra us pharmacy buy viagra online europe

  59. Viagra pills over the counter canada viagra generic price canada

  60. Pharmacy rx viagra sildenafil 88

  61. Sildenafil 75 mg sildenafil 25 mg buy

  62. Viagra price uk discount viagra prices

  63. Where to buy viagra viagra tablets online in india

  64. Female viagra australia for sale viagra canada otc

  65. viagra tablets online viagra pill where to buy generic viagra paypal canada

  66. edad para el consumo de viagra viagra do uruguai viagra sales rep movie

  67. best sildenafil in india viagra online american express viagra for women australia

  68. order sildenafil viagra 25 mg tablet price viagra chewable

Leave a Reply