CentOS 防火墙开启80端口以及查看已经开启的端口(转载)
CentOS 防火墙开启80端口
网上搜索了很多都没解决问题,下面是正确方法: #/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
然后保存: #/etc/rc.d/init.d/iptables save
如果上面的步骤还没好的话,可能是这个iptables文件使用的是包含调用。
一般的在/etc/sysconfig/iptables这个路径上 打开这个文件修改手动添加就行了。
注意需要重启服务哦:执行service iptabels save 与 service iptables restart
端口查看方法: [root@vcentos ~]# /etc/init.d/iptables status
您可能感兴趣的文章:
centos设置iptables 防火墙规则允许21与80端口
php中防止ddos恶意攻击的方法参考
CentOS下使用iptables开启端口
linux iptables入门教程
linux网络及防火墙配置相关命令
win2003开启防火墙后FileZilla Server客户端无法连接(ftp)
ERROR 2003:Can’t connect to MySQL server on ‘localhost’ (10060)
服务器无法上网怎么办?服务器无法上网解决方法
CentOS 5.5使用yum安装LAMP(php环境)步骤分享
solaris10防火墙配置详解