Linux下安裝防火牆/啓動防火牆/開發防火牆端口8080

安裝firewalld 防火牆yum install firewalld

開啓防火牆服務systemctl start firewalld.service

啓動防火牆 systemctl start firewalld

關閉防火牆systemctl stop firewalld.service

開機自動啓動systemctl enable firewalld.service

查看狀態firewall-cmd --state //running 表示運行

重新加載防火牆:firewall-cmd --reload

開放防火牆8080端口,指令是firewall-cmd --permanent --add-port=8080/tcp

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