CentOS7开机/etc/rc.local不执行的问题
我确认了下/etc/rc.local的权限
ll /etc/rc.local
lrwxrwxrwx. 1 root root 13 8月 12 06:09 /etc/rc.local -> rc.d/rc.local
ll /etc/rc.d/rc.local
-rw-r--r--. 1 root root 477 6月 10 13:35 /etc/rc.d/rc.local
/etc/rc.d/rc.local没有执行权限,按说明的内容执行
chmod +x /etc/rc.d/rc.local
重启后发现/etc/rc.local能够执行了
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭