centos 重启网卡
在 CentOS 中,可以使用以下命令重启网卡:
- 使用 ifup/ifdown 命令:
- 重启网卡:
sudo ifdown eth0
sudo ifup eth0
- 重启所有网卡:
sudo ifdown -a
sudo ifup -a
- 使用 systemctl 命令:
- 重启网络服务:
sudo systemctl restart network
- 停止并启动网络服务:
sudo systemctl stop network
sudo systemctl start network
原文地址: http://www.cveoy.top/t/topic/cp0U 著作权归作者所有。请勿转载和采集!