- 运行 “service iptables status” 时报错:
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.
解决办法:
$ yum install iptables-services # 安装 iptables-services
- 解决 Linux Apache 服务器不能访问的问题
检测防火墙
-
开启 /etc/init.d/iptables start # fys:可使用 "service"命令
-
查看状态 /etc/init.d/iptables status
-
开启80端口(若没有开启,网络无法通过http访问本机)
命令:$ /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT # 打开80端口,fys:可直接使用 "iptables"命令 $ /etc/rc.d/init.d/iptables save # 保存防火墙规则,fys:在我的 fedora 好像用不了
fr.
https://www.cnblogs.com/yangfor/p/12857738.html
https://www.cnblogs.com/roland1982/archive/2004/01/13/3513183.html
2021年1月4日