Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction of Linux chkconfig command service and main parameters

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "Linux chkconfig command service and main parameters introduction". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The Linux chkconfig command can also be used to activate and deactivate services. The "chkconfig--list" command displays a list of system services and whether they have been started (on) or stopped (off) at run levels 0 to 6. The Linux chkconfig command can also be used to set whether a service is started or stopped within a specified run level.

Chkconfig [--add] [--del] [--list] [system Services]

Chkconfig [--level] [system Services] [on/off/reset]

Chkconfig is a program developed by Red Hat in accordance with GPL rules. It can query which system services are executed by the operating system at each execution level, including various resident services.

The main parameters of the Linux chkconfig command:

-- add: adds the specified system service so that the Linux chkconfig command can manage it, and adds relevant data to the narrative file started by the system.

-- del: deletes the specified system service, is no longer managed by the Linux chkconfig command, and deletes the relevant data in the narrative file started by the system.

-- level: specifies the execution level in which the system service should be turned on or off.

For example, to stop the nfs service at run levels 3, 4, 5, use the following command:

Chkconfig-- level 345 nfs off "introduction to Linux chkconfig Command Service and main parameters" ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report