CentOS的iptables 默认禁止全部端口(起码经常使用的80,3306都禁用了),因此须要单独开启端口,例如开启80端口,使用以下指令markdown
iptables -I INPUT -p TCP --dport 80 -j ACCEPT