本例使用update-rc.d命令 1.拷贝脚本或可执行程序到/etc/init.d 2.在/etc/init.d执行 update-rc.d xxx(脚本文件) defaults 99 3.reboot即可