一、 问题起源

由于 CentOS 7 存在的问题,在 docker centos 容器中运行 ceph,执行 systemctl 指令会遇到如下错误:

Failed to get D-Bus connection: Operation not permitted

感觉这个问题只能换宿主机操作系统才能很好地解决,代价太大,遂决定使用 Ubuntu 14.04 容器运行ceph。

注意:只能安装 ceph hammer 或更低版本,因为新版本采用 systemd 管理服务,老版本使用的 chkconfig。无奈 Ubuntu 14.04 默认没有安装 chkconfig,于是有了本篇文章。

二、 chkconfig 安装

2.1  安装 sysv-rc-conf

# apt-get install sysv-rc-conf

2.2  链接 chkconfig

# cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig

三、测试

执行 chkconfig 命令

# chkconfig

Ubuntu 安装 chkconfig 服务管理程序

相关文章:

  • 2021-10-22
  • 2021-09-29
  • 2021-08-20
  • 2021-10-02
  • 2022-12-23
  • 2021-08-23
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2021-11-11
  • 2021-12-31
  • 2021-10-25
  • 2022-12-23
  • 2021-12-12
  • 2021-08-22
相关资源
相似解决方案