直接运行可以是吗? 贴上vim /etc/rc.d/rc.local看看
我平时就直接运行的。。。
[root@default ~]# vim /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.