CentOS 7.0 systemctl instructions

Source: Internet
Author: User

CentOS 7.0 systemctl instructions
Centos 7.0 introduces many features, and it seems that the use of the sytemctl command is relatively large.

Systemd usage:

Systemd Service Management Program

Systemctl is the most important tool. It integrates the functions of service and chkconfig. You can use it to enable or disable services permanently or only in the current session.

Run the following command to list running services or other: systemctl

For more information, see man systemctl ). Systemd-cgls lists running processes in a tree. It recursively displays the content of a given control group. For more information, see systemd-cgls manual.

How do I start, disable, enable, and disable a service?

Run a service:

Systemctl start network. service:

Systemctl stop network. service restart network service:

Systemctl restart network. service

Displays the status of a service (whether running or not): systemctl status network. service

Enable a service at startup: systemctl enable network. service

Disable a service at startup: systemctl disable network. service

Check whether the service is started when it is started: systemctl is-enabled network. service; echo $? Or chkconfig
Use the systemctl command to remember start, stop, restart, status, enable, disable, is-enabled. It can be used very well!

Systemd to view the auto-Start Program
Equivalent to chkconfig -- list
Ls/etc/systemd/system/multi-user.target.wants/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.