高效码农

CentOS7软件安装错误汇总

一、centos yum安装docker是报错

报错信息:

Error downloading packages:
  python-IPy-0.75-6.el7.noarch: [Errno 256] No more mirrors to try.
  libsemanage-python-2.5-14.el7.x86_64: [Errno 256] No more mirrors to try.
  policycoreutils-python-2.5-29.el7_6.1.x86_64: [Errno 256] No more mirrors to try.

解决方法:
安装命令改为如下命令即可

sudo yum install docker-ce-17.12.1.ce

二、docker搜索镜像或者docker version出现报错

报错信息:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决方法:启动docker

systemctl start docker

三、docker安装Elasticsearch报错

报错信息:

Using default tag: latest
Error response from daemon: manifest for elasticsearch:latest not found

解决方法:在命令后添加要安装的elasticsearch版本号

docker pull elasticsearch:7.2.0

四、docker下Elasticsearch启动成功,访问_cat/* 报错

报错信息:

{
    "error": {
        "root_cause": [
            {
                "type": "master_not_discovered_exception",
                "reason": null
            }
        ],
        "type": "master_not_discovered_exception",
        "reason": null
    },
    "status": 503
}

解决方案:指定初始节点就好

cluster.initial_master_nodes: node-1

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »