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

    你可能感兴趣的文章
    npm安装crypto-js 如何安装crypto-js, python爬虫安装加解密插件 找不到模块crypto-js python报错解决丢失crypto-js模块
    查看>>
    npm安装教程
    查看>>
    npm报错Cannot find module ‘webpack‘ Require stack
    查看>>
    npm报错Failed at the node-sass@4.14.1 postinstall script
    查看>>
    npm报错fatal: Could not read from remote repository
    查看>>
    npm报错File to import not found or unreadable: @/assets/styles/global.scss.
    查看>>
    npm报错TypeError: this.getOptions is not a function
    查看>>
    npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
    查看>>
    npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
    查看>>
    npm版本过高问题
    查看>>
    npm的“--force“和“--legacy-peer-deps“参数
    查看>>
    npm的安装和更新---npm工作笔记002
    查看>>
    npm的常用操作---npm工作笔记003
    查看>>
    npm的常用配置项---npm工作笔记004
    查看>>
    npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
    查看>>
    npm编译报错You may need an additional loader to handle the result of these loaders
    查看>>
    npm设置淘宝镜像、升级等
    查看>>
    npm设置源地址,npm官方地址
    查看>>
    npm设置镜像如淘宝:http://npm.taobao.org/
    查看>>
    npm配置安装最新淘宝镜像,旧镜像会errror
    查看>>