博客
关于我
记一次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/

    你可能感兴趣的文章
    Now trying to drop the old temporary tablespace, the session hangs.
    查看>>
    nowcoder—Beauty of Trees
    查看>>
    np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
    查看>>
    np.power的使用
    查看>>
    NPM 2FA双重认证的设置方法
    查看>>
    npm build报错Cannot find module ‘webpack/lib/rules/BasicEffectRulePlugin‘解决方法
    查看>>
    npm build报错Cannot find module ‘webpack‘解决方法
    查看>>
    npm ERR! ERESOLVE could not resolve报错
    查看>>
    npm ERR! fatal: unable to connect to github.com:
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near '...on":"0.10.3","direc to'
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near ‘...“:“^1.2.0“,“vue-html-‘ npm ERR! A comp
    查看>>
    npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
    查看>>
    npm error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装
    查看>>
    npm install CERT_HAS_EXPIRED解决方法
    查看>>
    npm install digital envelope routines::unsupported解决方法
    查看>>
    npm install 卡着不动的解决方法
    查看>>
    npm install 报错 EEXIST File exists 的解决方法
    查看>>
    npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
    查看>>
    npm install 报错 Failed to connect to github.com port 443 的解决方法
    查看>>
    npm install 报错 fatal: unable to connect to github.com 的解决方法
    查看>>