Linux开启和关闭防火墙的方法
1.首先查看防火墙的状态
service iptables status
2. 永久关闭防火墙,重启后不会复原
永久性开启:
chkconfig iptables on
永久性关闭:
chkconfig iptables off
3. 暂时关闭或开启防火墙,重启系统后,防火墙回复到以前的状态
暂时关闭:
services iptables stop
暂时开启:
services iptables start
4. 设置后重启系统
reboot

相关推荐
-
mysql中group by、having以及order by用法讲解
mysql中group by、having以及order by用法讲解2025-04-24 01:19:18 -
PHP操作ES案例demo2025-04-24 01:11:04
-
php中substr()方法使用笔记2025-04-24 00:29:53
-
Nginx 实现静态资源2025-04-24 00:26:00
-
Nginx、HAProxy、LVS三者的优缺点2025-04-24 00:00:22