Make sure /etc/rc.local is executable and that the script it calls is also executable.
$ ls -l /etc/rc.local
-rwxr-xr-x 1 root root 419 2010-08-27 11:26 /etc/rc.local
Make sure rc.local has a shebang line (which is the default):
$ head -n1 /etc/rc.local
#!/bin/sh -e
本文指导如何确认Linux系统中rc.local脚本的可执行权限,包括检查文件属性和shebang行的存在,确保开机启动脚本正常运行。
120

被折叠的 条评论
为什么被折叠?



