折雨的天空
systemctl enable rc-local.service报错:The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This
2022-7-28 我好笨


报错内容:







The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to be enabled using systemctl.



修改文件’/usr/lib/systemd/system/rc-local.service’,末尾增加:







[Install]
WantedBy=multi-user.target



其他的服务也是一样的。

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容