Home  >  Article  >  Operation and Maintenance  >  How to start the service in centos

How to start the service in centos

王林
王林Original
2020-05-16 14:53:264687browse

How to start the service in centos

You can use systemctl to start/stop/restart services.

To start a service, you need to use the following command:

# systemctl start httpd.service

This will start the httpd service, which in our case is the Apache HTTP server.

To stop it, you need to use this command as root:

# systemctl stop httpd.service

If you want to restart, you can use the restart option. If the service is running, it will restart the service; if the service is not running , it will start.

Recommended tutorial: centos tutorial

The above is the detailed content of How to start the service in centos. 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
Previous article:Is centos free?Next article:Is centos free?