Get the App
SLTechnology News&Howtos  ›  Servers  › 

Two methods of restarting Network Service under linux system

Shulou Source: shulou.com Published: 2022-06-03 07:53:03 09月10日 Update

Today, the editor shares with you two ways to restart network services under the linux system, which many people do not quite understand. Today, in order to let you know more about the methods of restarting network services under the linux system, the editor summarizes the following contents. Let's take a look. I'm sure you'll get something.

There are two ways for Linux to start, shut down, and restart network services:

1. Use service scripts to schedule network services, such as:

Start

Service network start

Close

Service network stop

Restart

Service network restart

2. Directly execute the management script of the network service, such as:

Start

/ etc/init.d/network start

Close

/ etc/init.d/network stop

Restart

/ etc/init.d/network restart

Extend:

1. Linux displays the running status command of all services

Service-status-allchkconfig-list

2. Linux to view the running status of a single service command

Service iptables status

3. Linux to check the startup status of the service and whether to boot the command automatically.

Chkconfig-list servicename

This is the end of the two ways to restart network services under the linux system. Of course, there are not only the above methods to analyze with you, but the editor can ensure that their accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.

Tags: Service network network service method system command status content script run apply what you have learned value accuracy method individual article way more see question Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei vpn OPPO Reno MariaDB