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:
#rpm -ivh <logstash_package_name>
DEB:
#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 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.2.tar.gz
#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

[Unit]
Description=Elasticsearch
Wants=network-online.target
After=network-online.target
[Service]
Environment=ES_HOME=/appdata/elasticsearch
Environment=CONF_DIR=/appdata/elasticsearch/config
Environment=DATA_DIR=/appdata/elasticsearch/data
Environment=LOG_DIR=/appdata/elasticsearch/logs
Environment=PID_DIR=/var/run/elasticsearch
EnvironmentFile=-/appdata/elasticsearch/config
WorkingDirectory=/appdata/elasticsearch
User=appuser
Group=appgroup
ExecStart=/appdata/elasticsearch/bin/elasticsearch \
-p ${PID_DIR}/elasticsearch.pid \
--quiet

# 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.
StandardOutput=journal
StandardError=inherit
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
# 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
LimitMEMLOCK=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=0
# SIGTERM signal is used to stop the Java process
KillSignal=SIGTERM
# Java process is never killed
SendSIGKILL=no
# When a JVM receives a SIGTERM signal it exits with code 143
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
# 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  '#'
path.data: <strong>/appdata/elasticsearch/data</strong>
path.logs: /appdata/elasticsearch/logs
network.host: 127.0.0.1
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

159 Comments

  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. http://saleviabuy.com does viagra make you bigger

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

  4. I have been the birth control pill Aleese since college. http://genqpviag.com 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. http://genqpviag.com 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. https://siviagmen.com approved generic viagra

  9. Her father trailed at in a motorboat, so she could radio him for help if she had an attack. http://genqpviag.com 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. http://genqpviag.com 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. https://siviagmen.com 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. https://genqpviag.com 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 - genqpviag.com - 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. http://siviagmen.com online prescription viagra

  16. If pulling is stopped before scarring to the scalp then your hair will grow back normally. https://genqpviag.com 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. http://llviabest.com 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. http://genqpviag.com back generic guarantee money viagra

  21. I ordered both o them online yesterday after reading your advice. http://siviagmen.com 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. http://siviagmen.com online viagra

  23. My father knew about it and took me to the hospital for medical attention. https://llviabest.com prescription for viagra online

  24. The pathogens that cause STDs may be BACTERIA, viruses, or parasites. https://siviagmen.com viagra samples online

  25. canadian pharmacy generic viagra http://fmedrx.com/ buy viagra online cheap india generic viagra

  26. cheap viagra pills online http://usggrxmed.com/ best generic viagra forum buying viagra online with paypal

  27. viagra met voorschrift https://purevigra.com chuck norris viagra ad

  28. genuine viagra wowviaprice.com drug similiar to viagra

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

  30. gnc product like viagra https://buybuyviamen.com 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 hopeviagrin.com canadian pharmacy viagra uk

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

  34. Can you buy viagra mexico https://lightvigra.com buy real viagra uk

  35. Sildenafil price australia mygoviagar.com viagra cream price

  36. Sildenafil 50 mg tablet https://hopeviagrin.com/ cheap female viagra online

  37. Female viagra capsules in india mygoviagar.com buy female viagra uk

  38. Best viagra hopeviagrin.com buy generic viagra online with mastercard

  39. Viagra free delivery https://mygoviagar.com/ can you buy generic viagra

  40. Female viagra medication https://lightvigra.com where can i get viagra online

  41. Female viagra pill price https://miraclevigra.com/ over the counter viagra pills

  42. Generic sildenafil paypal https://mygoviagar.com/ generic viagra fast delivery

  43. Viagra on line https://mygoviagar.com/ 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 https://lightvigra.com viagra in women

  46. Cheap viagra generic https://lightvigra.com can you safely buy viagra online

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

  48. Generic viagra cost lightvigra.com female viagra online australia

  49. Viagra 60 mg https://hopeviagrin.com sildenafil 20 mg online no prescription

  50. Cheap generic viagra online usa mygoviagar.com price comparison viagra

  51. Viagra cream australia hopeviagrin.com canadian viagra paypal

  52. Viagra online canada pharmacy https://mygoviagar.com/ cost of viagra 2017

  53. Viagra 50 https://lightvigra.com generic viagra where to buy

  54. Female viagra medicine price in india https://mygoviagar.com/ cost viagra

  55. Sildenafil 25 mg daily https://hopeviagrin.com sildenafil 50 mg price

  56. Prescription viagra cost lightvigra.com viagra pills online australia

  57. 360 viagra https://lightvigra.com/ viagra prescription nz

  58. Generic viagra us pharmacy https://hopeviagrin.com buy viagra online europe

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

  60. Pharmacy rx viagra https://hopeviagrin.com sildenafil 88

  61. Sildenafil 75 mg https://mygoviagar.com sildenafil 25 mg buy

  62. Viagra price uk mygoviagar.com discount viagra prices

  63. Where to buy viagra https://mygoviagar.com viagra tablets online in india

  64. Female viagra australia for sale mygoviagar.com 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

  69. get back up like viagra viagra ucinky muЕѕskГ© choroby viagra sans ordonnance forum

  70. jishka homework help essay writing 5th grade thesis statement

  71. essay online homework helper do my homework for me online

  72. ma thesis proposal hire someone to write a paper thesis statement in a research paper

  73. buy pre written essay teach me how to write an essay personal writing essay

  74. Buy essay papers https://buyessayhelpbtg.com/ essays to buy

  75. need help to write a book about my life essay immigration essay vikings

  76. Buy essays online cheap https://buyessayhelpbtg.com buy essays online for college

  77. writing a comparison essay introduction letter conclusion on a research paper

  78. write my essays for me best essay writers service research paper keywords

  79. Thesis assistance https://thesisbyd.com/ thesis express

  80. Thesis proposal writing thesisbyd.com phd no thesis

  81. viagra or cialis or levitra trial cialis free sample buy cialis online overnight shipping

  82. viagra for boys next day delivery viagra viagra paypal

  83. really really cheap cialis cialis order cialis india

  84. viagra geniric viagra without prescription viagra not working what to use?

  85. Cialis daily https://tadafcialirx.com order cialis

  86. Tadalafil online https://tadafcialirx.com/ cialis buy

  87. cialis what age i need cialis pay pal for cialis

  88. cialis no consultation cialis coupons low price cialis

  89. viagra australia how can i get free viagra buy viagra with dapoxetine

  90. Pfizer viagra https://atviagrmenrx.com free viagra

  91. How to use viagra for best results atviagrmenrx.com viagra without prescription

  92. viagra kaufen per nach nahme cheap viagra where to buy viagra with no prescription

  93. cheap viagra for sale viagra and dapoxine viagra with dapoxetine

  94. order viagra from canada buy viagra 100mg online buying viagra 25mg tablets online

  95. sildenafil cost pulmonary hypertension best place to buy cialis online 2021 generic cialis without rx effof Sex

  96. ordering generic viagra canada viagra pfizer on line has anyone bought viagra mexico effof Sex

  97. cialis tadalafil online pharmacies buying viagra in germany best generic viagra reviews effof Sex

  98. the people's pharmacy canadian pharmacy reviews canada drug pharmacy

  99. pharmacy in canada canadian pharmacy viagra best ed medication

  100. canadian drug pharmacy drugs from canada indian pharmacy online

  101. rx pharmacy online legit online pharmacy rx express pharmacy

  102. best drugstore eye cream http://pharmacy-onlineasxs.com/ ed meds

  103. canada drugs online 24 hour pharmacy near me pharm

  104. us online pharmacy 24 hour pharmacy near me п»їviagra online canadian pharmacy

  105. viagra 100 mg generic viagra me uk safe place to order viagra online effof Sex

  106. generic viagra online without prescription brand viagra samples viagra viagra 100mg gel viagra online without perscription viagra without prescription canada viagra generic 50 mg viagra overnight delivery usa viagra prices viagra 100 mg tablet viagra boots how much does a prescription of viagra cost viagra samples canada viagra online united kingdom anything cheaper than viagra

  107. cheapest generic levitra online generic viagra over the counter buy levitra no prescription required effof Sex

  108. viagra helsingborg buy female viagra australia viagra with prescription online buy generic viagra online in uk status of female viagra cheapviagrathatacceptsmastercard buy viagra online sydney viagra super force side effects viagra mit pay pal bezahlen order viagra with pay pal buyviagraonline order viagra in australia walgreen viagra cost per pill viagra hong kong guaranteed natural viagra

  109. buy viagra without presciption compralviagra viagra cialis on line parmacy precription strength viagra cialis vs levitra vs viagra which one is better viagra gold 800mg viagra dealers in malaysia byy viagra online how to buy viagra in shanghai where can i buy generic viagra viagra greece buy viagra discover card boots viagra online what ingredients inside viagra genric viagra

  110. viagra sydney where can you buy viagra with paypal? viagra who accept mastercard viagra cheap and fast delivery cheap viagra pills online female pink viagra online chewing viagra generic viagra 100 mg generic viagra pro viagra in india price viagra act viagra online kamagra cheap dr viagra buy viagra usa cheapest fastest viagra for sale viagra australia

  111. best over the counter viagra paypal viagra trusted ed medical viagra http://acialaarx.com/ - pfizer viagra without prescription ’

  112. generic cialis india online cialis canada discount super active cialis http://21cialismen.com/ - online generic cialis ’

  113. kann ich viagra in der apotheke kaufen where can i buy cialis pills viagra onlinepaypal effof Sex

  114. generic cialis (tadalafil) 20mg rx online cialis cialis quebec dollars canadien http://cialijomen.com/ - order cialis uk ’

  115. canadian viagra online melbourne buy viagra cheap viagra http://genqpviag.com/ - viagra from uk ’

  116. buy cialis online in usa cialis discussion forum dapoxetin,cialis http://mycialedst.com/ - cialis no script ’

  117. cheap india generic viagra online brand viagra sale buy viagra online w/questionnaire http://genericrxxx.com/ - hard for 36hr like viagra ’

  118. viagra cheap generic cialis cialis viagra levitra young yahoo cialis online without a prescription http://phrcialiled.com/ - cialis and no prescription ’

  119. female viagra viagra cialis trail pack order generic viagra online http://llviabest.com/ - viagra 50mg online ’

  120. cialis blaack cialis free samples overnight delivery generic cialis http://cialmenshoprx.com/ - buy generic cialis canada ’

  121. viamedic viagra nuy viagra online cheepviagra http://genqpviag.com/ - viagra free trial online ’

  122. 365pills mobi catalog viagra where to buy viagra online viagra onlinr https://canadianpharmacy-usx.com/organic.htm - where can i buy viagra ’

  123. how does cialis work online pharmacies canada cialis before and after pictures https://xz-pharmacyonline.com - canada drug pharmacy ’

  124. pharmacy2u viagra soft viagra doses pfizer viagra india http://xz-pharmacyonline.com/en/career-opportunities.html - buy viagra online usa ’

  125. order online cialis with dapoxetine cialis with dapoxetine cialis no prescriotion http://sjcialis.com/ - drugstore1st cialis ’

  126. cialis at costco viagra cialis melbourne site:au canadian meds cialis http://loncialis.com/ - cialis no perscrtion ’

  127. buy cialis 20mg canada drug cialis without prescription https://impotencecdny.com/ - canadian pharcharmy online fda approved ’

  128. Tizanidine Lamivudin (Cipla Ltd) Lanoxin https://canadianpharmacy-yy.com/ - pharmacy without dr prescriptions ’

  129. viagra without prescription costco online pharmacy buy viagra 20mg http://erectilejyzd.com/ - Lamivudin (Cipla Ltd) ’

  130. viagra buy online in india viagra 100mg reviews cialis deals online effof Sex

  131. sildenafil 1mg cost of viagra 2017 sildenafil nz buy http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html - viagra tablet 25 mg price in india ’

  132. cialis & dapoxitine cheap generic cialis inexpensive real cialis https://impotencecdny.com/info/history.php - review of cialis ’

  133. generic viagra canada viagra generic order viagra online cheap generic http://erectilejyzd.com/index.php?called=terms - purchase viagra online cheap ’

  134. viagra usa pharmacy levitra vs viagra cost dizzy right after viagra http://llviabest.com/ - photos of real viagra ’

  135. discount viagra online with cheap shipping viagra boots viagra india website inurl:forum

  136. walgreens online pharmacy no prescription pharmacies pills viagra pharmacy 100mg

  137. canadian pharmacy reviews viagra india cvs online pharmacy

  138. buy viagra without prescrip viagra brand name viagra for women in australia

  139. online canadian pharcharmy go coupon non prescription online pharmacy reviews

  140. cheap cialis canadian e liquid cialis

  141. online medicine to buy canada pharmacies without script muscle relaxant

  142. cialis liquid cialis 5 mg fa effetto

  143. canadapharmacy king pharmacy canada pharmacy online orders

  144. why buy cialis. com buy cialis online cialis price

  145. cialis original cialis in ungarn

  146. how old do you have to be to order viagra buy viagra without prescription canada what is blue pill viagra effof Sex

  147. texas cash out loan modification checkless payday loans cincinnati abl vs cash flow loan

  148. cialis walmart price http://llecialisjaw.com/ cialis free trial canada

  149. Hi Men. cialis experiences does humana insurance cover cialis

  150. how to drink cialis cialis naisella cialis face red

  151. cialis online without prescription kan man blanda viagra och cialis

  152. cialis with dapoxetine cialis emivita

  153. basic bank account payday loans payday loans jacksonville illinois manappuram gold loan moneycontrol

  154. how to get female viagra pills http://vigedon.com/ order viagra online without prescription

  155. cialis original prix recommended dosage of cialis how daily cialis works

  156. hdfc cash credit loan ace cash express loans salem oregon apply for a payday loan uk

  157. pills like viagra http://viagriyvik.com/ cheap viagra

  158. how long before sex should you take viagra how long do the effects of viagra last viagra uk

Leave a Reply