您好,登錄后才能下訂單哦!
本篇內容主要講解“elasticsearch下Docker的安裝步驟”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“elasticsearch下Docker的安裝步驟”吧!
標簽(空格分隔): Elasticsearch
[toc]
# 下載 docker pull docker.elastic.co/elasticsearch/elasticsearch:6.6.2 # 啟用 docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.2
使用集群部署
## 橋接啟動 docker run -d \ --name=a-pro-es1 \ -p 9200:9200 \ -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \ --ulimit memlock=-1:-1 \ --ulimit nofile=65536:65536 \ -v /opt/docker/elasticsearch/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml \ -v /opt/docker/elasticsearch/data:/usr/share/elasticsearch/data \ -v /opt/docker/elasticsearch/logs:/usr/share/elasticsearch/logs \ elasticsearch:5.3 ## 主機模式啟動 docker run -d --name=a-pro-es1 --net=host -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" --ulimit memlock=-1:-1 --ulimit nofile=65536:65536 -v /opt/docker/elasticsearch/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /opt/docker/elasticsearch/data:/usr/share/elasticsearch/data -v /opt/docker/elasticsearch/logs:/usr/share/elasticsearch/logs docker.elastic.co/elasticsearch/elasticsearch:6.6.2
docker run -p 9100:9100 mobz/elasticsearch-head:5
logstash-input-jdbc # docker 安裝logstash (需與elasticsearch版一致) docker run --rm -it -v /opt/docker/logstash/lib:/opt/logstash/lib -v /opt/docker/logstash/sql:/opt/logstash/sql -v /opt/docker/logstash/settings/logstash.yml:/usr/share/logstash/config/logstash.yml docker.elastic.co/logstash/logstash:6.6.2
處理日志和輸出到Elasticsearch,您可以使用日志記錄工具,如rsyslog(www.rsyslog.com),Logstash(www.elastic.co/products/logstash),或Apache Flume(http://flume.apache.org) 搜索和可視化界面分析這些日志,你可以使用Kibana(www.elastic.co/產品/ kibana)
到此,相信大家對“elasticsearch下Docker的安裝步驟”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。