elsatic的安装

来源:互联网 发布:linux arp 安装包 编辑:程序博客网 时间:2024/06/05 21:01

官网:
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/zip-targz.html

Install

先配置java8
http://blog.csdn.net/fearless11/article/details/76360016

nohup wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.1.tar.gz &du -sh elasticsearch-5.5.1.tar.gztar xfvz elasticsearch-5.5.1.tar.gzuseradd eschown -R es:root elasticsearch-5.5.1su - escd /usr/local/elasticsearch-5.5.1用daemon的方式运行./bin/elasticsearch -d -p pid    停止运行kill `cat pid`

报错

1、不能用root用户运行

org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root

新建用户es启动elastic

2、没有权限

Exception in thread "main" SettingsException[Failed to load settings from /usr/local/elasticsearch-5.5.1/config/elasticsearch.yml]; nested: AccessDeniedException[/usr/local/elasticsearch-5.5.1/config/elasticsearch.yml];

授权:chown -R es:root elasticsearch-5.5.1

原创粉丝点击