zoukankan      html  css  js  c++  java
  • Harbor报错:dial tcp 127.0.0.1:1514: connect: connection refused 解决

    今天重启harbor,报错信息如下:


    [root@harbor harbor]# docker-compose up -d
    harbor-log is up-to-date
    Starting harbor-portal ... error
    Starting registry      ... 
    Starting redis         ... 
    Starting registryctl   ... 
    Starting redis         ... error
    
    ERROR: for harbor-portal  Cannot start service portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
    
    Starting harbor-db     ... error
    Starting registry      ... error
    ERROR: for harbor-db  Cannot start service postgresql: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
    
    ERROR: for registryctl  Cannot start service registryctl: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
    
    ERROR: for registry  Cannot start service registry: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
    
    ERROR: for portal  Cannot start service portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
    
    .......
    

      

    解决方法:


    取消rsyslog.conf文件第19,20行注释,并将514改为1514

    vim /etc/rsyslog.conf

    取消注释并修改
    $ModLoad imtcp
    $InputTCPServerRun 1514
    

    接着重启rsyslog

    systemctl restart rsyslog.service
    

      

    重启harbor

    docker-compose up -d
    

      

     

  • 相关阅读:
    往鼠标位置写入 诗词
    shell条件判断
    shell 案例一
    Shell中的变量
    echo e 命令详解
    Docker 安装RedisJSON 与使用
    Python 插入数据库的各种方式
    Python压缩文件/文件夹
    shell运算符
    关于CAN总线简单总结
  • 原文地址:https://www.cnblogs.com/heyongboke/p/14085945.html
Copyright © 2011-2022 走看看