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

The implementation method of controlling Service Operation by chkconfig tools under linux

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains the "implementation method of chkconfig tools under linux to control the operation of services". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the implementation method of chkconfig tools to control service operation under linux".

Linux services are run as scripts, and Fedora is no exception, and the scripts for these services are placed in the / etc/rc.d/init.d directory. We can control the details of its operation by modifying the service scripts here.

Fedira and RedHat provide a chkconfig tool that makes it easier to control the operation of services.

Usage:

Chkconfig-- list [name]

Chkconfig-add

Chkconfig-del

Chkconfig-override

Chkconfig [--level]

For example, to view a list of all services:

# chkconfig-list

View the run level of only one service (smb):

# chkconfig-list smb

Smb 0: close 1: close 2: close 3: close 4: close 5: close 6: close

The above line clearly shows that the smb server is turned off at all runtime levels. We can open it with the following command. For example, let smb run automatically in both 3 (character) and 5 (graphics) modes:

# chkconfig-- level 35 smb on

# chkconfig-list smb

Smb 0: off 1: close 2: close 3: enable 4: close 5: enable 6: close

Is it open?

Then why is it off? Just try to change on to off.

Thank you for your reading, the above is the content of "the implementation method of chkconfig tool control service operation under linux". After the study of this article, I believe you have a deeper understanding of the implementation method of chkconfig tool control service operation under linux, and the specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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