Centos install elasticsearch tutorial

The installation of elasticsearch is implemented by ytkah in the search of the laravel e-commerce site. It is not very laborious to solve it through its own search and learning ability. Let's sort out the installation of elasticsearch tutorial. The server is Centos 7. Friends in need can refer to it. Elasticsearch requires java8 or above; we go to https://www.oracle.com/technetwork/java/javase/downloads/index.html to download and install the latest version of java11 jdk, select Accept License Agreement and right-click jdk-11.0.1_linux-x64_bin .rpm copy link, enter command on the command line:

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http:%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie""http://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f270a4347a95050320eef3fb7/jdk-11.0.1_linux-x64_bin.rpm"

Wait for download to complete

Start the installation, install jdk, pay attention to the file name to be consistent with the link

sudo rpm -ivh jdk-10.0.1_linux-x64_bin.rpm

Enter the following command, if you can see the version number, the installation is successful;

java -version

Download the elasticsearch installation, https://www.elastic.co/downloads/elasticsearch, select the RPM file (in this example, elasticsearch-6.4.2.rpm), copy the link, and enter the following command to download:

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.2.rpm

Install elasticsearch, pay attention to the same version number:

sudo rpm -ivh elasticsearch-6.4.2.rpm

Edit configuration items after installation

vim /etc/elasticsearch/elasticsearch.yml

Uncomment the following three lines (remove the # in front);

bootstrap.memory_lock:true
network.host:192.168.0.1
http.port:9200

Pay attention to open ports 9200 and 9300, because some operators will set server security group policies

Then change network.host to localhost

network.host: localhost

Start elasticsearch and enter

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch

Then check the 9200 port to check if it started successfully

netstat -plntu

If it still does not start up after half a day, it may be due to insufficient memory.

vim /etc/elasticsearch/jvm.options

Change the memory to less than half of your server's memory, for example, change it to 512M here;

Restart elasticsearch

sudo systemctl restart elasticsearch

Check whether the status is normal

curl 'localhost:9200'

At this point, elasticsearch is installed.

This article is referenced from https://baijunyao.com/article/155

Recommended Posts

Centos install elasticsearch tutorial
Centos install MYSQL8.X tutorial
Centos7 install kubernetes tutorial
Centos7 install Mysql8 tutorial
Install Elasticsearch 6 on centos7
Linux Centos7 install redis tutorial
vmware install CentOS 7 detailed tutorial
1.5 Install Centos7
5.1. CentOS@ install JDK1.8 graphic tutorial
CentOS 7 yum install PHP7.3 tutorial
Install Mesos tutorial under CentOS7
How to install Elasticsearch on CentOS 8
CentOS8 install jdk8 / java8 tutorial (recommended)
How to install Elasticsearch on CentOS 8
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
ubuntu install elasticsearch
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker