报错内容:
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
其他的服务也是一样的。