zoukankan      html  css  js  c++  java
  • centos7下 开启/关闭/查看firewall运行状态命令

    1.开启防火墙:systemctl start firewalld.service

    [root@localhost bin]# systemctl start firewalld.service
    [root@localhost bin]#

    2.查看状态:firewall-cmd --state 开启状态:running 关闭状态:not running

    [root@localhost bin]# firewall-cmd --state
    running

    3.关闭防火墙:systemctl stop firewalld.service

    [root@localhost bin]# systemctl stop firewalld.service
    [root@localhost bin]# firewall-cmd --state
    not running

    4.开机不启动防火墙:systemctl disable firewalld.service

    [root@localhost bin]# systemctl disable firewalld.service
    Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
    Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
    [root@localhost bin]# 
  • 相关阅读:
    中文转数字
    半角全角互转
    sql快速查记录数
    杀进程批处理
    线程基本用法
    sql游标用法示例
    BUGFREE的使用
    SQL常用函数
    ASP.NET 2.0 下的验证码控件
    经典sql语句
  • 原文地址:https://www.cnblogs.com/maxmoore/p/12067685.html
Copyright © 2011-2022 走看看