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 http://file.kangle.odata.cc/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.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

configuration

vim /etc/elasticsearch/elasticsearch.yml

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

-Xms1g
-Xmx1g

Boot up start up

service elasticsearch start
chkconfig elasticsearch on

Install the ElasticSearch – Head Chrome plugin

Download address https://files.cnblogs.com/fil…

View port occupancy

lsof -i:9100