网站首页 美容小常识 享受生活 东方时尚 识真假 高奢 资讯 游戏攻略 搞笑段子
当前位置:品位站 > 享受生活 > 心理

linux重启网口命令

栏目: 心理 / 发布于: / 人气:1.08W
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重启网口的命令是不同的,稍微有点区别。

service network restart。 (1)首先用CRT工具连接到Linux命令行界面。 或者进入操作系统界面,选择终端输入。 (2)如果我们对所有的网卡进行重启操作。 可以尝试输入:service network restart 命令进行操作。

ifconfig eth0 down / ifconfig eth0 up。谢谢