在centos7中,/etc/rc.local文件的權(quán)限被降低了,沒(méi)有執(zhí)行權(quán)限,需要給它添加可執(zhí)行權(quán)限转培。 chmod +x /etc/rc.local