美文网首页centos 7
centos7中的/etc/rc.local文件权限问题

centos7中的/etc/rc.local文件权限问题

作者: think_lonely | 来源:发表于2017-10-18 21:59 被阅读296次

    在centos7中,/etc/rc.local文件默认没有可执行权限

    如果要执行一些命令,需要加入可执行权限

    # ll /etc/rc.local

    lrwxrwxrwx. 1 root root 13 Sep  4 16:01 /etc/rc.local -> rc.d/rc.local

    # ll /etc/rc.d/rc.local

    -rw-r--r--. 1 root root 507 Sep  7 21:51 /etc/rc.d/rc.local  # 没有可执行的权限

    增加可执行权限

    # chmod +x /etc/rc.d/rc.local

    相关文章

      网友评论

        本文标题:centos7中的/etc/rc.local文件权限问题

        本文链接:https://www.haomeiwen.com/subject/qucyuxtx.html