关于ELK:Centos6搭建ELK-01-安装Elasticsearch

更换yum源

CentOS 6曾经进行更新反对,同时官网也把yum源删除了,目前CentOS 6零碎应用yum命令装置软件包根本都是失败,因而须要更换yum源。

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

* 留神先备份一下原有的repo文件,免得出问题无奈复原

装置elasticsearch

装置

yum install -y elasticsearch

配置

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

启动 开机启动

service elasticsearch start
chkconfig elasticsearch on

装置elasticsearch-head chrome浏览器插件

下载地址
https://files.cnblogs.com/fil…

查看端口占用

lsof -i:9100

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理