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