linux重啟網絡和防火牆


Linux重啟網絡命令

Ubuntu

重啟網絡命令
service networking restart
重啟網卡命令
ifconfig eth0 up

Fedore

重啟網絡命令
systemctl restart network.service

CentOS

重啟網絡命令
service network restart

Linux關閉開啟防火牆命令

在外部訪問CentOS中部署應用時,需要關閉防火牆。

關閉防火牆命令:systemctl stop firewalld.service

開啟防火牆:systemctl start firewalld.service

關閉開機自啟動:systemctl disable firewalld.service

開啟開機啟動:systemctl enable firewalld.service


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM