linux port 開放

1.port 追加

# firewall-cmd --list-all
# firewall-cmd --add-port=8080/tcp --zone=public --permanent
# firewall-cmd --reload
# firewall-cmd --list-all

2.port 削除

# firewall-cmd --list-all
# firewall-cmd --remove-port=8080/tcp --zone=public --permanent
# firewall-cmd --reload
# firewall-cmd --list-all