MySQL, Oracle, Linux, 软件架构及大数据技术知识分享平台

网站首页 > linux / 正文

Linux开启和关闭防火墙的方法

2024-11-26 16:54 huorong linux 8 ℃ 0 评论

1.首先查看防火墙的状态

service iptables status

2. 永久关闭防火墙,重启后不会复原

永久性开启:

chkconfig iptables on

永久性关闭:

chkconfig iptables off

3. 暂时关闭或开启防火墙,重启系统后,防火墙回复到以前的状态

暂时关闭:

services iptables stop

暂时开启:

services iptables start

4. 设置后重启系统

reboot


Tags:关闭linux防火墙命令

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言