Home > Operation and Maintenance > Linux Operation and Maintenance > How to restart service in linux

How to restart service in linux

王林
Release: 2020-03-12 17:24:02
Original
7576 people have browsed it

How to restart service in linux

You can use the service service name start/stop/restart to start, stop and restart the service.

For example:

service 服务名 start
service 服务名 stop
service 服务名 restart
Copy after login

(Recommended tutorial: linux tutorial)

You can also directly execute a service's own management script, using the vpnagetd service as Example:

/etc/init.d/vpnagentd  start
/etc/init.d/vpnagentd stop
/etc/init.d/vpnagentd restart
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to restart 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template