当前位置: 首页 > news >正文

响应式网站模板下载免费徐州网站设计

响应式网站模板下载免费,徐州网站设计,企业网站报价单,改行做网站目录 前言安装ElasticSearch/ES安装步骤1:准备1. 安装docker2. 搜索可以使用的镜像。3. 也可从docker hub上搜索镜像。4. 选择合适的redis镜像。 安装步骤2:拉取ElasticSearch镜像1 拉取镜像2 查看已拉取的镜像 安装步骤3:创建容器创建容器方…

目录

  • 前言
  • 安装ElasticSearch/ES
    • 安装步骤1:准备
      • 1. 安装docker
      • 2. 搜索可以使用的镜像。
      • 3. 也可从docker hub上搜索镜像。
      • 4. 选择合适的redis镜像。
    • 安装步骤2:拉取ElasticSearch镜像
      • 1 拉取镜像
      • 2 查看已拉取的镜像
    • 安装步骤3:创建容器
      • 创建容器方式1:快速创建容器
    • 安装步骤4:运行容器
    • 安装步骤5:检查是否安装成功
  • ElasticSearch 配置
    • 工作目录/WorkingDir
    • 设置跨域请求
    • 设置 JVM 内存参数
  • 容器设置
    • 容器随 docker 自动启动
    • 容器设置IP
  • 安装elasticsearch-head
  • 其它
  • 参考

前言

  • TencentOS Server 3.1
  • Docker version 19.03.14, build 5eb3275d40
  • elasticsearch: 7.4.0

安装ElasticSearch/ES

安装步骤1:准备

1. 安装docker

安装 docker 参考:【Centos 8】【Centos 7】安装 docker

2. 搜索可以使用的镜像。

```
shell> docker search elasticsearch
NAME                                     DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
elasticsearch                            Elasticsearch is a powerful open source sear…   6115      [OK]       
kibana                                   Kibana gives shape to any kind of data — str…   2622      [OK]       ```

3. 也可从docker hub上搜索镜像。

docker hub,docker hub-stage。

4. 选择合适的redis镜像。

版本拉取命令
最新版本docker pull elasticsearch:latest
7.4.0docker pull elasticsearch:7.4.0
7.12.0docker pull elasticsearch:7.12.0
8.0.0docker pull elasticsearch:8.0.0
8.9.0docker pull docker.elastic.co/elasticsearch/elasticsearch:8.9.0

安装步骤2:拉取ElasticSearch镜像

1 拉取镜像

shell> docker pull elasticsearch:7.4.0

2 查看已拉取的镜像

shell> docker images
REPOSITORY                                      TAG       IMAGE ID       CREATED         SIZEelasticsearch                                   7.4.0     dd156dd42341   3 years ago     859MB
mobz/elasticsearch-head                         5         b19a5c98e43b   6 years ago     824MB

安装步骤3:创建容器

创建容器方式1:快速创建容器

shell> docker create -e "discovery.type=single-node" -p 9200:9200  -p 9300:9300 \
-e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
--name elasticsearch1 elasticsearch:7.4.0

安装步骤4:运行容器

shell> docker start elasticsearch1

安装步骤5:检查是否安装成功

浏览器访问http://localhost:9200, 如果出现以下界面就是安装成功:
在这里插入图片描述

ElasticSearch 配置

工作目录/WorkingDir

"WorkingDir": "/usr/share/elasticsearch" 

设置跨域请求

shell> docker exec -it elasticsearch1 /bin/bash
shell> vi /usr/share/elasticsearch/config/elasticsearch.yml

增加如下配置:

http.cors:enabled: trueallow-origin: "*"

设置 JVM 内存参数

shell> docker exec -it elasticsearch1 /bin/bash
shell> vi /usr/share/elasticsearch/config/jvm.options

修改如下配置:

################################################################
## IMPORTANT: JVM heap size
################################################################
##
## The heap size is automatically configured by Elasticsearch
## based on the available memory in your system and the roles
## each node is configured to fulfill. If specifying heap is
## required, it should be done through a file in jvm.options.d,
## which should be named with .options suffix, and the min and
## max should be set to the same value. For example, to set the
## heap to 4 GB, create a new file in the jvm.options.d
## directory containing these lines:
##
## -Xms4g
## -Xmx4g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/8.9/heap-size.html
## for more information
##
################################################################
-Xms1g
-Xmx1g

容器设置

容器随 docker 自动启动

设置容器的重启策略

shell> docker update --restart=always elasticsearch1
  • 每次docker启动时,容器也会自动启动

容器设置IP

向网络中添加容器

shell> docker network connect --ip 172.19.0.2  mynetwork elasticsearch1 
  • docket ip : 172.19.0.2

安装elasticsearch-head

Docker安装 elasticsearch-head

其它

参考

https://blog.csdn.net/qq_40942490/article/details/111594267
https://www.cnblogs.com/jianxuanbing/p/9410800.html
https://blog.csdn.net/teyue87/article/details/122626499
https://blog.csdn.net/qq_44732146/article/details/120744829
https://gitee.com/mirrors/elasticsearch
https://github.com/mobz/elasticsearch-head

http://www.dt0577.cn/news/25505.html

相关文章:

  • 电商网站建设运城百度网盘搜索引擎
  • 有什么可以做兼职的网站吗如何提高百度搜索排名
  • 网站开发 项目章程十大网络推广公司排名
  • 开发网站制作如何利用网络广告进行推广
  • 影视网站搭建哪个系统好广告投放平台公司
  • 寻花问柳专注做一家男性喜欢的网站百度竞价推广方案
  • wordpress 企业站常用网站推广方法及资源
  • 西安企业网站开发哪家好365优化大师软件下载
  • 苏州哪家做网站好sem是什么意思?
  • 有专门做ppt的网站吗什么是seo优化
  • 大连网页设计哪家公司好成都seo优化
  • 免费电子商务网站建设关键词推广排名软件
  • 网站建设要哪些seo国际新闻界
  • 网上接活的平台有哪些泾县网站seo优化排名
  • 2015手机版网站制作seo的收费标准
  • 你那个没封的网站怎么做啊合肥网络关键词排名
  • 域名备案网站购买百度账户托管公司
  • wordpress指定内容加密seo助手
  • dede企业网站模板国内时事新闻
  • 电脑买编程代码做网站广东广州重大新闻
  • 怎么自己做整人网站网站推广的四个阶段
  • 小荷特卖的网站谁做的百度网址大全网站大全
  • 高端定制站开发seo外链工具源码
  • 深圳网站建设独占网络网页版
  • 网站建设要代码有什么好处应用关键词优化
  • 淘宝建设网站常见问题汕头seo公司
  • 高端网站建设kgu关键词点击排名软件
  • 专业网站建设质量推荐如何推广公司网站
  • 龙岗做网站多少钱搜索引擎优化的步骤
  • 遂宁模板建站公司网络营销的作用和意义