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

What is the use of chkconfig in Linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces what is the use of chkconfig in Linux. It is very detailed and has a certain reference value. Interested friends must finish reading it!

These two commands may be included in most current Linux distributions. Chkconfig usage provides great convenience for us to control the services (daemons) in Linux. Let's take a look at the help of these two commands:

[root@localhost] # service-- help

Usage: service

< option >

|-- status-all | [service_name [command |-- full-restart]]

[root@localhost] # chkconfig-- help

Chkconfig version 1.3.29-copyright (C) 1997-2000 Red Hat, Inc.

This software can be freely distributed under the condition of GNU Public license.

Chkconfig usage: chkconfig-- list [name]

Chkconfig-add

Chkconfig-del

Chkconfig [--level]

Sshd is not in the list of system services by default on my system, so their usage is illustrated with the sshd command:

Entering service sshd lists some of the actions available:

[root@localhost ~] # service sshd

Usage: / etc/init.d/sshd {start | stop | restart | reload | condrestart | status}

Start the sshd service:

Service sshd start

Stop the sshd service:

Service sshd stop

Add sshd to the list of services:

Chkconfig-add sshd

Enable sshd to power on and run automatically:

Chkconfig sshd on

You can also specify the run level of sshd through-- level.

The above is all the content of this article "what is the use of chkconfig in Linux?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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