Oracle Linux 8 : How to Restart Network Services (文档 ID 2579497.1)

本文介绍在Oracle Linux 8中如何重启网络服务。由于传统网络服务脚本已不再适用,提供了两种方法:一是使用NetworkManager服务,通过systemctl restart NetworkManager命令;二是利用nmcli工具,在GUI或控制台下运行#nmclinetworkingoff和#nmclinetworkingon命令,或在SSH会话中使用#nmclinetworkingoff;nmclinetworkingon。

Oracle Linux 8 : How to Restart Network Services (文档 ID 2579497.1)

APPLIES TO:

Linux OS - Version Oracle Linux 8.0 and later
Linux x86-64

GOAL

In Oracle Linux 8 the network services scripts are not presented anymore(systemctl start network.service or /etc/init.d/network script)

In order to restart the network services follow one of these two options.

SOLUTION

  • Using Network Manager

# systemctl restart NetworkManager

  • Using nmcli Tool

Note: Run these commands from the GUI or the console, as the network will disable.

====>>>务必注意:如下命令有使用的前提条件:那就是在机器旁边,

#nmcli networking off
#nmcli networking on

In case it is needed to run from the terminal from an ssh session, can be run it like this:

#nmcli networking off; nmcli networking on

====>>>务必注意:通过ssh远程连入服务器时,务必使用如上命令。

Note: It is recommendable to have accesses to the GUI or console in case the network doesn't come up.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值