【问题标题】:chkconfig --list does not show newly added servicechkconfig --list 不显示新添加的服务
【发布时间】:2017-09-12 20:13:29
【问题描述】:

我创建了服务脚本。

etc/init.d/oracle11se 

以下命令成功。

chkconfig --add oracle11se

以下命令运行成功。

/etc/init.d/oracle11se start

但是命令

chkconfig --list oracle11se

不显示新添加的服务。此外,该服务不会在重新启动时启动。

操作系统版本是 redhat 7.2。

【问题讨论】:

  • chkconfig 的输出提醒您 Red Hat 7 正在使用 systemd。
  • 它还具有向后兼容性。
  • 应该是这样。在实践中,不值得谈论。

标签: linux service init.d


【解决方案1】:

systemctl 已替换 chkconfig

这是您应该使用的命令:systemctl status oracle11se.service

如果您想列出活动服务:systemctl list-units --type service

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多