html tool

2016年7月11日星期一

开机启动脚本添加

来源:http://wangheng.org/ubuntu-to-add-boot-script.html

1、方法一,编辑rc.loacl脚本 
Ubuntu开机之后会执行/etc/rc.local文件中的脚本,
所以我们可以直接在/etc/rc.local中添加启动脚本。
当然要添加到语句:exit 0 前面才行。
如:
sudo vi /etc/rc.local
然后在 exit 0 前面添加好脚本代码

没有评论:

发表评论