1.首先写一个脚本start.sh
2.sudo vim /etc/rc.local在最后面加上sudo sh /路径/start.sh
3.sudo vim/etc/init.d/rc.local 后面加上/etc/rc.local
4.重启即可
ubuntu16.04开机启动程序
1.首先写一个脚本start.sh
2.sudo vim /etc/rc.local在最后面加上sudo sh /路径/start.sh
3.sudo vim/etc/init.d/rc.local 后面加上/etc/rc.local
4.重启即可