Linux开机自启动方法shell脚本

设置命令行自启动
开机自启动脚本为/etc/rc.d/rc.local,可以将开机需要进行设置的命令可以在此脚本中加入。假设开机
时自动执行/root/loop.sh,在/etc/rc.d/rc.local中加入
#source /etc/rc.d/qt_env.sh
#source /etc/rc.d/apps.sh &

cd /
/root/loop.sh
 

猜你喜欢

转载自blog.csdn.net/gengyiping18/article/details/83991647