elasticSearch安装

全文搜索引擎 Elasticsearch 入门教程

https://www.elastic.co/guide/en/elasticsearch/reference/6.1/_installation.html

可以直接在windows上安装elasticSearch, windows的安装更简单。

https://www.elastic.co/guide/en/elasticsearch/reference/6.1/_installation.html#_installation_example_with_msi_windows_installer

先安装java

Centos中yum方式安装java

yum -y install java-1.8.0-openjdk*

安装elasticSearch

有效的版本号https://github.com/elastic/elasticsearch/releases

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.4.zip

unzip elasticsearch-5.5.1.zip

cd elasticsearch-5.5.1/

这时进入解压后的文件内执行elasticsearch久启动起来了

./bin/elasticsearch

报错

can not run elasticsearch as root

切换普通用户

https://blog.csdn.net/liucoding/article/details/80599997

将下载的elastic的文件不要放在root根目录下。即可启动

访问也能看到返回了

你可能感兴趣的:(elasticSearch安装)