Merge branch 'master' of https://git.coding.net/lion187/NotePublic
This commit is contained in:
commit
532b3c8a0f
|
@ -11,13 +11,13 @@
|
|||
添加/删除/查询服务命令如下:
|
||||
|
||||
firewall-cmd --permanent --add-port=8080/tcp
|
||||
firewall-cmd --remove-port=8080/udp
|
||||
firewall-cmd --permanent --remove-port=8080/udp
|
||||
firewall-cmd --query-port=8080/tcp
|
||||
|
||||
添加/删除/查询端口命令如下:
|
||||
|
||||
firewall-cmd --permanent --add-service=ssh
|
||||
firewall-cmd --remove-service=samba
|
||||
firewall-cmd --permanent --remove-service=samba
|
||||
firewall-cmd --query-service=ssh
|
||||
|
||||
参数 --permanent 表示进行的是永久性配置(默认为临时配置,重启后失效)。
|
||||
|
|
Loading…
Reference in New Issue