一、安装环境
Linux(Centos 7) (注意 :服务器建议1g内存以上 )
Elasticserach 6.4.3
二、安装步骤
2.1、安装Elasticsearch之前需要安装JDK,建议安装JDK版本为1.8及以上,如果你对Linux环境安装JDK环境不是很熟悉请参考:https://blog.csdn.net/qazzwx/article/details/94725938
2.2、进入官网下载Linux版本:https://www.elastic.co/cn/products/elasticsearch 不是很建议使用wget 下载 文件很大 wget比较耗时
2.3、使用 tar -zxvf 解压
[root@localhost local]# tar -zxvf elasticsearch-6.4.3.tar.gz
2.4、 进入elasticsearch-6.4.3/config文件夹内,修改配置文件
network.host: 192.168.252.129 //这个IP是你当前服务器的ip
http.port: 9200 // 外网访问端口
2.5、此时cd /usr/local/elasticsearch-6.4.3/bin去启动ElasticSerach 会报Caused by: java.lang.RuntimeException: c