CentOS 7安裝Elasticsearch
1、安裝ES
從官網下載Elasticsearch,下載地址: https://www.elastic.co/cn/downloads/elasticsearch
將下載的壓縮包上傳的伺服器進行解壓,我這裡下載的6.6.1版本
tar -zxvf elasticsearch-6.6.1.tar.gz
進入elasticsearch目錄,修改配置檔案,elasticsearch預設監聽的是172.0.0.1,這個地址在外面無法訪問,需要修改為伺服器真實的IP地址
cd elasticsearch-6.6.1/
vi config/elasticsearch.yml
將elasticsearch.yml的配置項
#network.host: 192.168.0.1
改成真實的IP
network.host: 192.168.50.95
2、啟動ES
在elasticsearch-6.6.1目錄啟動ES
bin/elasticsearch
若後臺啟動ES需要新增 -d引數
bin/elasticsearch -d
我這裡啟動ES的時候,報了兩個錯誤
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]
第一個問題解決方法在/etc/security/limits.conf檔案裡面新增如下內容
* soft nofile 65536
* hard nofile 131027
* soft nproc 2048
* hard nproc 4096
第二個問題解決方法在/etc/sysctl.conf檔案裡面新增如下內容
vm.max_map_count=262144
修改完成後執行如下命令使修改內容生效
sysctl -p
修改完上面兩個配置檔案後,最好重啟一下系統
再次啟動ES,出現started表示ES啟動成功,在瀏覽器輸入IP:9200就會返回ES的json資訊
{ "name" : "eYyNTmz", "cluster_name" : "elasticsearch", "cluster_uuid" : "HZiMvPzSTCKRZ6nxRcDZhQ", "version" : { "number" : "6.6.1", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "1fd8f69", "build_date" : "2019-02-13T17:10:04.160291Z", "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" }
相關文章
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos 7安裝部署elasticsearch 7.5.1CentOSElasticsearch
- CentOS 7 安裝 Elasticsearch 6.4.2 教程CentOSElasticsearch
- centos7安裝elasticsearch:7.9.3CentOSElasticsearch
- Centos7下安裝配置elasticsearch 6.3.1CentOSElasticsearch
- CentOS7.X安裝elasticsearch-5.6.2CentOSElasticsearch
- Centos 7安裝和配置 ElasticSearch入門小白CentOSElasticsearch
- centos7 安裝 ElasticSearch 配置外網訪問CentOSElasticsearch
- CentOS 7.6 安裝 Elasticsearch 7.2CentOSElasticsearch
- ElasticSearch(二)CentOs6.4下安裝ElasticSearchElasticsearchCentOS
- Centos7-VMware+Centos7安裝配置CentOS
- 【CentOS】CentOS7安裝PostgreSQLCentOSSQL
- Centos 7安裝iscsiCentOS
- CentOS 7 安裝 lnmpCentOSLNMP
- CentOS 7安裝RedisCentOSRedis
- CentOS 7 - 安裝NginxCentOSNginx
- Centos 7安裝FTPCentOSFTP
- Centos 7 安裝JDKCentOSJDK
- Centos 7 安裝NginxCentOSNginx
- CentOS 7 安裝redisCentOSRedis
- CentOS7安裝rabbitmqCentOSMQ
- centos 7 安裝 rabbitMqCentOSMQ
- CentOS 7安裝MySQLCentOSMySql
- CentOS 7 安裝 GlusterFSCentOS
- CentOS 7安裝AzcopyCentOS
- centos 7 安裝 ffmpegCentOS
- CentOS 7 安裝 MySQLCentOSMySql
- Centos 7 Docker 安裝CentOSDocker
- Centos下Elasticsearch安裝詳細教程CentOSElasticsearch
- CentOS6.5安裝ElasticSearch6.2.3CentOSElasticsearch
- CentOS6.5安裝Elasticsearch5.3.0CentOSElasticsearchH5
- CentOS6.5安裝Elasticsearch1.7.5CentOSElasticsearch
- centos7.x 安裝教程 elasticsearch7.0.X & es-headCentOSElasticsearch
- Centos7安裝安裝部署dockerCentOSDocker
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- centos7 解除安裝openJDK 安裝jdk7CentOSJDK
- CentOS7 安裝 memcacheCentOS
- CentOS 7 yum 安裝 MySQLCentOSMySql