linux重启网口命令?
我的回答:Linux重启网口的命令是:
1.Centos 6.x
ifconfig 网卡名 down
ifconfig 网卡名 up
service network restart
2.centos7.x
ifconfig 网卡名 down
ifconfig 网卡名 up
systemctl restart network
3.centos 8.x:
nmcli c down 网卡名
nmcli c up 网卡名
nmcli d reapply 网卡名
nmcli c reload
nmcli d c 网卡名
在三个系统的版本里面,Linux重启网口的命令是不同的,稍微有点区别。
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有