需要开机执行的sudo命令可以写在/etc/rc.local中, 因为/etc/rc.local是以root身份去执行的。 系统在启动时会先调用/etc/init.d/rc.local,在/etc/init.d/rc.local脚本中再调用/etc/rc.local