一个简单的命令操作Centos 7防火墙
查看防火墙状态
[ ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: active (running) since 一 2020-06-08 11:52:08 CST; 2h 5min ago Docs: man:firewalld(1) Process: 3886 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Main PID: 3773 (firewalld) CGroup: /system.slice/firewalld.service └─3773 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
防火墙其他的操作指令
systemctl status firewalld
status(运行状态) / stop(停止) / start(启动) / enable(启用) / disable(永久禁用) / reload
注:在centos 7 或 Fedora中防火墙由firewall来管理。
相关推荐
summerinsist 2020-08-21
Wepe0 2020-10-30
Lostinthewoods 2020-10-29
hickwu 2020-10-23
focusforce 2020-10-10
winki 2020-08-19
89284553 2020-07-17
大老张学编程 2020-07-04
xiaohouye 2020-06-28
lizhengfa 2020-06-26
Aveiox 2020-06-25
clamzxf 2020-06-16
kerson 2020-06-16
zhangwentaohh 2020-06-14
学峰的学习笔记 2020-06-11
linuxalienyan 2020-06-11