Quantcast
Channel: 让代码飞扬-王志博的博客 » web服务器
Viewing all articles
Browse latest Browse all 5

临时关闭防火墙, 永久关闭防火墙

$
0
0

下午解析域名碰到一个问题,各种信息弄好了,但是 域名就是不能访问, 请教别人才知道 是我的防火墙没关 , 但是之前我确实关闭过系统的防火墙,最后知道了, 防火墙关闭有两种形式,一种是临时关闭, 重启系统后还会开启, 另一种是 永久的关闭; 呵呵,我的错误就是临时关闭了防火墙,重启系统后防火墙自动又开了, 查了下面几个方法给大家参考
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off

2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
王志博17:52


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles



Latest Images