Every day a Linux command (SYSTEMCTL) command

Source: Internet
Author: User

The SYSTEMCTL command is a system Service Manager directive that actually combines both the service and Chkconfig commands.

(1) Usage:

usage: systemctl [parameters] [service]

(2) Function:

Features: systemd is a system and service Manager under Linux that is compatible with SysV and LSB startup scripts.

(3) Option parameters:

Start,stop,restart,status,enable,disable,is-enabled

(4) Example:

1) [[email protected] sunjimeng]# Systemctl | More-5 Show all services that have been activated

[Email protected] sunjimeng]# Systemctl | More-5UNIT LOAD ACTIVE SUB Descriptionproc-sys-fs-Binfmt_misc.automount loaded active running A Rbitrary executable file Formats file System automount pointsys-devices-pci0000:xx-0000:xx:07.1-ata2-host1-target1:0:0-1:0:0:0-block-Sr0.device loaded Active plugged--more--[5]+ has stopped Systemctl | More-5[email protected] sunjimeng]# Systemctl list-units |more-5UNIT LOAD ACTIVE SUB Descriptionproc-sys-fs-Binfmt_misc.automount loaded active running A Rbitrary executable file Formats file System automount pointsys-devices-pci0000:xx-0000:xx:07.1-ata2-host1-target1:0:0-1:0:0:0-block-Sr0.device loaded Active plugged--more--

2) [[email protected] sunjimeng]# systemctl list-unit-files |more-5 Show all installed services

[Email protected] sunjimeng]# systemctl list-unit-files |more-5Unit FILE State   proc- Sys-fs-binfmt_misc.automount           static  dev-hugepages.mount                          static   Dev-mqueue.mount                            static  proc-fs-nfsd.mount                          static  --more--

3) [[email protected] sunjimeng]# Systemctl is-enabled telnet.socket See if a specific service is set to start

is-is-enabled Telnet.socket ". Enabled

(5) Other:

The SYSTEMD features are:

support parallel tasks, using both socket and D-busactivation service, start daemon on demand (daemon), monitor process with Linux cgroups, support snapshot and system Recovery, maintain mount point and auto mount point The services are precisely controlled based on dependency relationships. 

Every day a Linux command (SYSTEMCTL) command

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.