How to start the service in centos

王林
Release: 2020-05-16 14:53:26
Original
4671 people have browsed it

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
Copy after login

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
Copy after login

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!

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!