1. 首页
  2. 系统运维
  3. Linux

CentOS 7中的/etc/rc.local脚本命令不生效的解决

Due to systemd introduced in CentOS 7, the /etc/rc.local not enabled by default, you should make /etc/rc.local executable by your hand.

解决办法:

命令:

  1. chmod a+x /etc/rc.local

重启后再试试应该就可以了。

联系我们

0574-55011290

QQ:248687950

邮件:admin@nbhao.org

工作时间:周一至周五,9:00-18:00,节假日休息

QR code