Home >Operation and Maintenance >Linux Operation and Maintenance >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!