您的位置:折雨的天空 >其他技术> 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
报错内容:
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
其他的服务也是一样的。
------------正 文 已 结 束, 感 谢 您 的 阅 读 (折雨的天空)--------------------
转载请注明本文标题和链接:《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》
发表评论