Centos7 下 rc.local 文件开机不执行

centos7,在官网上给出建议:使用systemd服务或udev规则来运行开机启动脚本,所以在 centos7 中 rc.local 默认是不执行该文件的

如果想要该文件被执行,只需要给该文件赋权限即可 chmod +x /etc/rc.d/rc.local 

posted @ 2018-07-23 18:08  chbyiming  阅读(177)  评论(0)    收藏  举报