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

How to restart service in linux

王林
王林Original
2020-03-12 17:24:027527browse

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

(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

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!

Statement:
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