查看/etc/rc.local是否有执行权限,没有就加上
[root@sannian conf.d]# ll /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 525 Nov 2 11:28 /etc/rc.d/rc.local
[root@sannian conf.d]# ll /etc/rc.local
lrwxrwxrwx 1 root root 18 Nov 2 11:47 /etc/rc.local -> /etc/rc.d/rc.local
[root@sannian conf.d]#
[root@sannian jiaoben]# ls -ln /etc/rc.local
lrwxrwxrwx 1 0 0 18 Nov 2 11:47 /etc/rc.local -> /etc/rc.d/rc.local
重新
[root@sannian jiaoben]# rm -rf /etc/rc.local
[root@sannian jiaoben]# ln -s /etc/rc.d/rc.local /etc/rc.local
然后重启服务器测试一下