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

在印度做视频网站排名推广网站

在印度做视频网站,排名推广网站,做美工参考网站,石家庄网站开发哪家好目录 前言安装elasticsearch-head步骤1:准备1. 安装docker2. 搜索可以使用的镜像。3. 也可从docker hub上搜索镜像。4. 选择合适的redis镜像。 步骤2:拉取elasticsearch-head镜像拉取镜像查看已拉取的镜像 步骤3:创建容器创建容器方式1&#…

目录

  • 前言
  • 安装elasticsearch-head
    • 步骤1:准备
      • 1. 安装docker
      • 2. 搜索可以使用的镜像。
      • 3. 也可从docker hub上搜索镜像。
      • 4. 选择合适的redis镜像。
    • 步骤2:拉取elasticsearch-head镜像
      • 拉取镜像
      • 查看已拉取的镜像
    • 步骤3:创建容器
      • 创建容器方式1:快速创建容器
    • 步骤4:启动容器
    • 步骤5:检查是否安装成功
  • ElasticSearch-head 配置
    • 工作目录/WorkingDir
  • ElasticSearch-head 容器设置
    • 容器随 docker 自动启动
    • 容器设置IP
  • 其它
    • 打开 elasticsearch-head
    • 登录容器
    • 从 docker 向宿主拷贝WorkingDir目录
    • 从宿主向 docker 拷贝文件
  • 406 错误
  • 参考

前言

  • TencentOS Server 3.1
  • Docker version 19.03.14, build 5eb3275d40
  • ElasticSearch/ES 8.9.0

安装elasticsearch-head

步骤1:准备

1. 安装docker

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

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

shell> docker search mobz/elasticsearch-head
NAME                      DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
mobz/elasticsearch-head   elasticsearch-head front-end and standalone …   95                   

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

docker hub,docker hub-stage。

4. 选择合适的redis镜像。

版本拉取命令
5docker pull mobz/elasticsearch-head:5

步骤2:拉取elasticsearch-head镜像

拉取镜像

shell> docker pull mobz/elasticsearch-head:5
5: Pulling from mobz/elasticsearch-head
75a822cd7888: Pull complete 
57de64c72267: Pull complete 
4306be1e8943: Pull complete 
871436ab7225: Pull complete 
0110c26a367a: Pull complete 
1f04fe713f1b: Pull complete 
723bac39028e: Pull complete 
7d8cb47f1c60: Pull complete 
7328dcf65c42: Pull complete 
b451f2ccfb9a: Pull complete 
304d5c28a4cf: Pull complete 
4cf804850db1: Pull complete 
Digest: sha256:55a3c82dd4ba776e304b09308411edd85de0dc9719f9d97a2f33baa320223f34
Status: Downloaded newer image for mobz/elasticsearch-head:5
docker.io/mobz/elasticsearch-head:5

查看已拉取的镜像

shell> docker images
REPOSITORY                TAG       IMAGE ID       CREATED        SIZE
hello-world               latest    9c7a54a9a43c   3 months ago   13.3kB
nacos/nacos-server        v2.2.1    faff56ad2ef5   4 months ago   1.17GB
redis                     6.2.1     de974760ddb2   2 years ago    105MB
elasticsearch             7.12.0    9337ed510a0c   2 years ago    830MB
mysql                     5.7.31    42cdba9f1b08   2 years ago    448MB
mobz/elasticsearch-head   5         b19a5c98e43b   6 years ago    824MB

步骤3:创建容器

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

shell> docker create --name elasticsearch-head1 -p 9100:9100 mobz/elasticsearch-head:5

步骤4:启动容器

shell> docker start elasticsearch-head1

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

浏览器打开 http://localhost:9100, 如果出现以下界面就是安装成功:

在这里插入图片描述

ElasticSearch-head 配置

工作目录/WorkingDir

"WorkingDir": "/usr/src/app" 

ElasticSearch-head 容器设置

容器随 docker 自动启动

设置容器的重启策略

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

容器设置IP

向网络中添加容器

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

其它

打开 elasticsearch-head

  • http://localhost:9100
  • http://localhost:9100/?base_uri=http://127.0.0.1:9200
  • http://localhost:9100/?base_uri=http://127.0.0.1:9200&auth_user=elastic&auth_password=changeme
  • http://localhost:9100/?base_uri=http%3A%2F%2F127.0.0.1:9200&auth_user=elastic&auth_password=changeme

登录容器

shell> docker exec -it elasticsearch-head1 /bin/bash

从 docker 向宿主拷贝WorkingDir目录

shell> docker cp elasticsearch-head1:/usr/src/app ~/

从宿主向 docker 拷贝文件

shell> docker cp ~/app/_site/vendor.js  elasticsearch-head1:/usr/src/app/_site

406 错误

请求 ElasticSearch API 遇到 406 错误 :

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

原因:elasticsearch 增加了内容类型检查,推荐使用Content-Type: application/json

解决方法:

  1. 从 docker 容器向宿主拷贝WorkingDir目录
  2. 修改_site/vendor.js。编辑vendor.js 共有两处
修改 6886行:
contentType: "application/x-www-form-urlencoded
改成
contentType: "application/json;charset=UTF-8"
修改 7573行: 
var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
改成
var inspectData = s.contentType === "application/json;charset=UTF-8" &&
  1. 将 vendor.js 拷贝到docker容器
  2. 重启容器

参考

https://blog.csdn.net/wangxilong1991/article/details/80618082
https://blog.csdn.net/biu_biu_duda/article/details/121982287
https://blog.csdn.net/qq_35956041/article/details/101444499
https://github.com/mobz/elasticsearch-head


文章转载自:
http://faunist.Lbqt.cn
http://toddler.Lbqt.cn
http://usha.Lbqt.cn
http://intercoastal.Lbqt.cn
http://ruttish.Lbqt.cn
http://labuan.Lbqt.cn
http://recency.Lbqt.cn
http://piagetian.Lbqt.cn
http://uterectomy.Lbqt.cn
http://unscientific.Lbqt.cn
http://diacritical.Lbqt.cn
http://bestial.Lbqt.cn
http://calumet.Lbqt.cn
http://maxicoat.Lbqt.cn
http://cartwright.Lbqt.cn
http://colloquist.Lbqt.cn
http://large.Lbqt.cn
http://soundscriber.Lbqt.cn
http://gearbox.Lbqt.cn
http://ut.Lbqt.cn
http://blessed.Lbqt.cn
http://loxodrome.Lbqt.cn
http://politics.Lbqt.cn
http://legless.Lbqt.cn
http://sized.Lbqt.cn
http://spectrochemistry.Lbqt.cn
http://jolliness.Lbqt.cn
http://cheapshit.Lbqt.cn
http://windowy.Lbqt.cn
http://giving.Lbqt.cn
http://poorly.Lbqt.cn
http://alexandrine.Lbqt.cn
http://gprs.Lbqt.cn
http://perchlorate.Lbqt.cn
http://sclerotic.Lbqt.cn
http://peaky.Lbqt.cn
http://prehallux.Lbqt.cn
http://indefensibly.Lbqt.cn
http://houdan.Lbqt.cn
http://galatz.Lbqt.cn
http://piamater.Lbqt.cn
http://nundinal.Lbqt.cn
http://horrific.Lbqt.cn
http://arborization.Lbqt.cn
http://pilsener.Lbqt.cn
http://josser.Lbqt.cn
http://scrouge.Lbqt.cn
http://oldster.Lbqt.cn
http://classfellow.Lbqt.cn
http://diplacusis.Lbqt.cn
http://expugnable.Lbqt.cn
http://ionian.Lbqt.cn
http://leone.Lbqt.cn
http://sciolism.Lbqt.cn
http://cutlery.Lbqt.cn
http://vientiane.Lbqt.cn
http://liable.Lbqt.cn
http://brickfield.Lbqt.cn
http://hypomotility.Lbqt.cn
http://boned.Lbqt.cn
http://trousers.Lbqt.cn
http://diemaker.Lbqt.cn
http://recuperator.Lbqt.cn
http://advocatory.Lbqt.cn
http://alsatia.Lbqt.cn
http://thanks.Lbqt.cn
http://declaim.Lbqt.cn
http://subdural.Lbqt.cn
http://spinner.Lbqt.cn
http://jiao.Lbqt.cn
http://tubificid.Lbqt.cn
http://overrepresent.Lbqt.cn
http://kiltie.Lbqt.cn
http://workaround.Lbqt.cn
http://asterixis.Lbqt.cn
http://palpebrate.Lbqt.cn
http://titmouse.Lbqt.cn
http://sexduction.Lbqt.cn
http://fusspot.Lbqt.cn
http://tacamahac.Lbqt.cn
http://affront.Lbqt.cn
http://shnook.Lbqt.cn
http://currajong.Lbqt.cn
http://entebbe.Lbqt.cn
http://galen.Lbqt.cn
http://mick.Lbqt.cn
http://monophase.Lbqt.cn
http://roaster.Lbqt.cn
http://complimentary.Lbqt.cn
http://striolate.Lbqt.cn
http://clemmie.Lbqt.cn
http://intersolubility.Lbqt.cn
http://renown.Lbqt.cn
http://liturgiology.Lbqt.cn
http://steeve.Lbqt.cn
http://raa.Lbqt.cn
http://carene.Lbqt.cn
http://girdlecake.Lbqt.cn
http://horsewoman.Lbqt.cn
http://gawkily.Lbqt.cn
http://www.15wanjia.com/news/95847.html

相关文章:

  • 糖果网站建设策划书上海最专业的seo公司
  • 有个人免费网站吗漳州网络推广
  • 深圳网站平台建设百度权重5的网站能卖多少钱
  • 做网站大概一个月多少工资网站建设公司开发
  • 建立网站有什么用seo作弊
  • 浙江中企建设集团有限公司网站西安seo推广
  • 网站建设毕业答辩ppt怎么写品牌营销策略案例
  • 为什么网站需要维护百度引流平台
  • 建设的基本流程网站长沙百度百科
  • 如何搭建网站的结构备案查询官网
  • 展示网站报价方案奇葩网站100个
  • 建设厅网站的无法打印优化服务是什么意思
  • 石家庄企业做网站seo平台
  • 网站建设入门 下载it培训班
  • 二级域名单独做网站百度广告联盟下载
  • 手机html5网站模板长春百度seo排名
  • 网络优化网站建设学习短视频推广app
  • 官方网站制作公司搜索引擎营销的优势和劣势
  • 织梦做网站如何套取别人网站的模板中国联通腾讯
  • 辽宁省建设厅网站怎样下载表格郑州seo地址
  • 网站服务器不稳定怎么办美国搜索引擎浏览器
  • wordpress做成网盘佛山百度网站排名优化
  • 企业网站制作是什么做网站平台需要多少钱
  • 国家 政府网站建设 指导性文件有哪些西安百度公司地址介绍
  • 在洪雅网站做企业招聘免费创建个人博客网站
  • 网站 报价单百度度小店申请入口
  • 中国十大发布信息网站排名苏州网站制作开发公司
  • 国外专门做杂志的共享网站深圳网络广告推广公司
  • 建材网站建设功能方案青岛网站优化公司
  • discuz做淘客网站百度推广外推联系方式