执行以下命令:

systemctl list-dependencies multi-user.target | grep rc-local

如果没有输出执行下方命令:

chmod +x /etc/rc.d/rc.local
systemctl daemon-reload

再次执行命令:

systemctl list-dependencies multi-user.target | grep rc-local

输出结果:

● ├─rc-local.service