Failed to enable unit: Unit file chronyd.service does not exist.

因为执行了  systemctl disable chronyd.service

然后再对它执行操作会提示 Failed to enable unit: Unit file chronyd.service does not exist.

原因是 服务被 disable了,所以不能用了。

解决办法:

1.  systemctl enable chrony

就可以了


ubuntu不要加d,systemctl status chrony


d是daemon的意思,有些服务不需要加d,看你配置的unit的文件名

posted @ 2022-06-21 16:09  伊娜陈  阅读(7276)  评论(1编辑  收藏  举报