博客
关于我
记一次K8S 的ETCD搭建出错 (cat EOF在shell脚本中需要转义$)
阅读量:391 次
发布时间:2019-03-04

本文共 315 字,大约阅读时间需要 1 分钟。

启动ETCD服务时出现读取值失败的问题,经过仔细检查,发现问题出在服务文件中的参数转义不当。以下是解决问题的详细步骤:

  • 检查服务文件:首先,查看ETCD的服务文件,确保所有参数正确且转义妥当。发现ExecStartPreV中的参数缺少必要的转义,导致系统无法正确解析。

  • 修正参数转义:将相关参数用引号包裹并进行适当转义,确保脚本能够正确执行。

  • 重新加载服务配置:使用systemctl daemon-reload命令,确保系统重新解析配置文件中的参数。

  • 重新启动ETCD服务:通过systemctl start etcd命令,尝试重新启动服务,以验证问题是否已解决。

  • 通过以上步骤,问题得以解决,ETCD服务成功启动,读取值无误。

    转载地址:http://jlhe.baihongyu.com/

    你可能感兴趣的文章
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
    查看>>
    org.hibernate.HibernateException: Unable to get the default Bean Validation factory
    查看>>
    org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
    查看>>
    org.tinygroup.serviceprocessor-服务处理器
    查看>>
    org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
    查看>>
    org/hibernate/validator/internal/engine
    查看>>
    SQL-36 创建一个actor_name表,将actor表中的所有first_name以及last_name导入改表。
    查看>>
    ORM sqlachemy学习
    查看>>
    Ormlite数据库
    查看>>
    orm总结
    查看>>
    os.environ 没有设置环境变量
    查看>>
    os.path.join、dirname、splitext、split、makedirs、getcwd、listdir、sep等的用法
    查看>>
    os.system 在 Python 中不起作用
    查看>>
    OS2ATC2017:阿里研究员林昊畅谈操作系统创新与挑战
    查看>>
    OSCACHE介绍
    查看>>
    SQL--合计函数(Aggregate functions):avg,count,first,last,max,min,sum
    查看>>
    OSChina 周五乱弹 ——吹牛扯淡的耽误你们学习进步了
    查看>>