Replace the yum source

CentOS 6 has stopped updating support, and the YUM source has been removed. At present, the YUM command is used to install software packages on the CentOS 6 system, and almost all of them fail. Therefore, the YUM source needs to be replaced.

wget -O /etc/yum.repos.d/CentOS-Base.repo
wget -O /etc/yum.repos.d/epel.repo
yum makecache

* Note to backup the original repo file first, in case of problems can not be restored

Install the elasticsearch

The installation

yum install -y elasticsearch


vim /etc/elasticsearch/elasticsearch.yml master-node /data/elasticsearch/es-data
path.logs: /data/elasticsearch/es-log
http.port: 9200
vim /etc/elasticsearch/jvm.options


Boot up start up

service elasticsearch start
chkconfig elasticsearch on

Install the ElasticSearch – Head Chrome plugin

Download address…

View port occupancy

lsof -i:9100