CentOS7下Elasticsearch-6.6.2安装部署
-
下载
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.2.tar.gz -
解压
tar -zxvf elasticsearch-6.2.4.tar.gz -
配置yml
-
elasticsearch.yml
cluster.name: bigdata-application
network.host: 0.0.0.0
# 是否支持跨域
http.cors.enabled: true
# *表示支持所有域名
http.cors.allow-origin: "*"
-
启动
./elasticsearch -
报错
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vi /etc/security/limits.conf
添加
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096
sudo sysctl -w vm.max_map_count=262144
- 重新启动
http://hadoop001:9200/
{
"name" : "1N1ZEF_",
"cluster_name" : "bigdata-application",
"cluster_uuid" : "tcPFNEulSfqAgzV5tsrgzQ",
"version" : {
"number" : "6.6.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "3bd3e59",
"build_date" : "2019-03-06T15:16:26.864148Z",
"build_snapshot" : false,
"lucene_version" : "7.6.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
安装完成