- 给 /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
05-24
4781
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-02
4593
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
chmod +x /etc/rc.d/rc.local
chmod +x /etc/rc.d/autoExec.sh