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

中国的网站做欧美风网站首页排名seo搜索优化

中国的网站做欧美风,网站首页排名seo搜索优化,抚州网站开发机构,网站群建设工作培训会目录 前言安装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.hkea.cn/news/996073/

相关文章:

  • wordpress网站备案上海搜索推广
  • 网站建设套餐有哪些安卓在线视频嗅探app
  • 做电影网站要买什么重庆seo网站哪家好
  • 广州北京网站建设公司网站外部优化的4大重点
  • 网站建设书优化大师是干什么的
  • 优秀的网站建设公司百度指数人群画像
  • wordpress企业中文模板太原seo哪家好
  • 广东网广东网站建设网站推广方案模板
  • 网站运营知识快手seo
  • 咖啡公司网站建设策划书微信营销方式
  • 柳江区城乡住房建设局网站上海seo优化服务公司
  • 西城企业网站建设企业网站怎么优化
  • 初学者做动态网站项目例子游戏特效培训机构排名
  • 汽车类网站搭建直链平台
  • 做网站遇到的困难总结网络营销软件代理
  • 做网站登录论坛外链代发
  • 东营专业网站建设公司排行青岛谷歌优化公司
  • 公众号和网站先做哪个口碑营销的形式
  • 长沙企业建网站费用关键词搜索推广排行榜
  • 怎么做网站端口代理沧州网络推广外包公司
  • php wordpress 目录seo课程培训机构
  • 常州网站建设方案优化引流app推广软件
  • 网络营销网站建设实训网络营销步骤
  • 网站都有后台吗百度竞价开户公司
  • 秭归网站建设网站seo优化心得
  • wordpress电影网站模板seo运营
  • 公司注册网上核名业务如何终止网站排名优化怎么做
  • 网站建设伍金手指下拉2网上推广平台
  • 沧州网站建设公司翼马爱情链接
  • 计算机学了出来干嘛免费优化推广网站的软件