Linux防火牆添加允許訪問端口

開啓防火牆

systemctl start firewalld

加入允許訪問的端口

firewall-cmd --permanent --add-port=8080/tcp

重啓防火牆

firewall-cmd --reload

查看防火牆狀態

systemctl status firewalld
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章