linux设置开机自启动

编辑文件:/etc/rc.local,  将所需要执行的任务在末尾加上(类似crontab添加)

vim /etc/rc.local 
原文地址:https://www.cnblogs.com/lixingbaophp/p/8880140.html