- 给 /etc/rc.d/rc.local 文件赋权:
chmod +x /etc/rc.d/rc.local
- 给需要执行的脚本赋权(例如脚本:/etc/rc.d/autoExec.sh):
chmod +x /etc/rc.d/autoExec.sh
- 修改 rc.local 文件,在末尾添加 /etc/rc.d/autoExec.sh
centos7 开机自启脚本方法之rc.local
最新推荐文章于 2024-05-20 23:24:40 发布
chmod +x /etc/rc.d/rc.local
chmod +x /etc/rc.d/autoExec.sh