CentOS7开机/etc/rc.local不执行的问题
我确认了下/etc/rc.local的权限ll /etc/rc.locallrwxrwxrwx. 1 root root 13 8月 12 06:09 /etc/rc.local -> rc.d/rc.localll /etc/rc.d/rc.local-rw-r--r--. 1 root root 477 6月 10 13:35 /etc/rc.d/rc.local/etc/rc.d/
我确认了下/etc/rc.local的权限ll /etc/rc.locallrwxrwxrwx. 1 root root 13 8月 12 06:09 /etc/rc.local -> rc.d/rc.localll /etc/rc.d/rc.local-rw-r--r--. 1 root root 477 6月 10 13:35 /etc/rc.d/rc.local/etc/rc.d/
重置默认策略.iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT复位NAT的默认策略iptables -t nat -P PREROUTING ACCEPT iptables -t nat -P POSTROUTING ACCEPT iptables -t nat -P OUTPUT ACCEP