Linux 開啟 / 停止 / 重新啟動網路

以下是主要 Linux 發行版開啟 / 停止 / 重新啟動網路的方法。

RHEL 7 / CentOS 7 / Fedora:

# systemctl start network.service
# systemctl stop network.service
# systemctl restart network.service

RHEL 6 / CentOS 6 / Fedora 較舊版:


# service network stop
# service network start
# service network restart

Debian / Ubuntu:

# service networking stop
# service networking start
# service networking restart


Leave a Reply