Ubuntu设置脚本开机自启动:

1、先将脚本放到/etc/init.d/下

2、update-rc.d aa.sh defaults 90 (90意思为启动顺序,建议设置为90以后)