有时我们想要在开机的时候,自动执行某些命令,在ubuntu中,很容易办到: 只需在 /etc/rc.local中加入自己的命令即可。 搜索关键字可知,/etc/init.d/rc.local会呼叫到 /etc/rc.local