我确认了下/etc/rc.local的权限

ll /etc/rc.local

lrwxrwxrwx. 1 root root 13 8月 12 06:09 /etc/rc.local -> rc.d/rc.local

ll /etc/rc.d/rc.local

-rw-r--r--. 1 root root 477 6月 10 13:35 /etc/rc.d/rc.local
/etc/rc.d/rc.local没有执行权限,按说明的内容执行

chmod +x /etc/rc.d/rc.local

重启后发现/etc/rc.local能够执行了