System service system services in Linux

Source: Internet
Author: User

Control of system Services

1.systemd
System initialization program, the first process that the system starts, the PID is 1

2.systemctl command

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9C/9E/wKioL1lzTYGDJtLKAADgtFoHNGc088.png "title=" Screenshot from 2017-07-22 21-04-27.png "alt=" Wkiol1lztygdjtlkaadgtfohngc088.png "/>

Systemctl list-units List The status of the current system service
Systemctl List-unit-files lists the service's boot status
Systemctl status sshd View the state of the specified service
Systemctl stop sshd shuts down the specified service
Systemctl start sshd to start the specified service
Systemctl Restart sshd New START service
Systemctl enable sshd to set the specified service to start
Systemctl Disable sshd settings specify service shutdown
Systemctl Reload SSHD enables the specified service to be loaded from the new configuration
Systemctl list-dependencies sshd View dependent relationships for specified services
Systemctl Mask sshd freezes the specified service
Systemctl unmask sshd Enable service
Systemctl Set-default Multi-user.target Power-on does not turn on graphics
Systemctl set-default graphical.target boot up graphics
Setterm Text Interface Setting color

3. Service Status
Systemctl Status Service Name

Loaded # system service has been initialized to complete, loaded configuration
Active (running) is having one or more programs executing in the system,
# VSFTPD is this pattern

Atcive (exited) only performs a regular service,
# There are no programs in the system at this time.

Atcive (Waiting) is being executed.
# and wait for other events to continue

Inactive service shutdown
enbaled Service boot up
Disabled service boot not self-starter
Static service boot entry is not managed
Failed System Configuration Error

Masked frozen state

System service system services in Linux

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.