Update firewall-cmd.md (#141)

允许SSH服务通过的命令错误更正
禁止SSH服务通过的命令错误更正
This commit is contained in:
leo 2019-11-08 16:46:09 +08:00 committed by 小弟调调™
parent 684ad633d8
commit df0631620d
1 changed files with 2 additions and 2 deletions

View File

@ -139,10 +139,10 @@ Amanda, FTP, Samba和TFTP等最重要的服务已经被FirewallD提供相应的
firewall-cmd --get-services
# 允许SSH服务通过
firewall-cmd --enable service=ssh
firewall-cmd --new-service=ssh
# 禁止SSH服务通过
firewall-cmd --disable service=ssh
firewall-cmd --delete-service=ssh
# 打开TCP的8080端口
firewall-cmd --enable ports=8080/tcp