Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the chkconfig command of linux to check and set up various services of the system

Shulou Source: shulou.com Published: 2022-06-02 12:44:08 11月28日 Update

This article mainly introduces the use of linux chkconfig command to check and set up a variety of services of the system, the article is very detailed, has a certain reference value, interested friends must read it!

This is a program developed by Red Hat following the GPL rules, which can query which system services are performed by the operating system at each execution level, including various resident services.

Syntax format: chkconfig [parameters]

Common parameters:

-- add adds the specified system service so that the chkconfig instruction can manage it, and at the same time adds related data to the narrative file started by the system-- del deletes the specified system service, which is no longer managed by the chkconfig instruction, and deletes the relevant data in the narrative file started by the system.-- level specifies at which execution level the read system service will be turned on or off.

Reference example

List all the commands that chkconfig knows:

[root@linuxcool ~] # chkconfig-list

Activate the service:

[root@linuxcool ~] # chkconfig telnet on

Shut down the service:

[root@linuxcool ~] # chkconfig telnet off

Add httpd services:

[root@linuxcool] # chkconfig-- add httpd

Delete the httpd service:

[root@linuxcool ~] # chkconfig-del httpd above is to check and set up all the contents of various services of the system using the chkconfig command of linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Services systems commands checks content parameters instructions data files levels and the same reference management operating system value company interests including examples guys Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL Huawei Linux vpn