How to restart network service in linux

王林
Release: 2020-03-13 14:21:52
Original
15504 people have browsed it

How to restart network service in linux

Two ways to start, shut down, and restart network services in Linux:

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

Start

service network start
Copy after login

Close

service network stop
Copy after login

Restart

service network restart
Copy after login

(Recommended tutorial:linux tutorial)

2. Directly execute the management of network services Scripts, such as:

Start

/etc/init.d/network start
Copy after login

Close

/etc/init.d/network stop
Copy after login

Restart

/etc/init.d/network restart
Copy after login

Extension:

1. Linux displays the running of all services Status command

service --status-all chkconfig --list
Copy after login

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

service iptables status
Copy after login

3. Linux view service startup status, whether to automatically start the command after booting

chkconfig --list servicename
Copy after login

Related video tutorials:linux video tutorial

The above is the detailed content of How to restart network service in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!