Home > Operation and Maintenance > Linux Operation and Maintenance > How to shut down services in linux

How to shut down services in linux

WBOY
Release: 2022-01-27 10:50:13
Original
6139 people have browsed it

In Linux, you can use the chkconfig command to turn off services. The function of this command is to check and set various services of the system. The syntax is "chkconfig services that need to be turned off".

How to shut down services in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to turn off services in Linux

Linux chkconfig command is used to check and set various services of the system.

This is a program developed by Red Hat in compliance with GPL rules. It can query what system services the operating system will execute in each execution level, including various resident services.

Syntax

chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level <等级代号>][系统服务][on/off/reset]
Copy after login

Parameters:

  • --add Add the specified system service so that the chkconfig command can manage it and start it at the same time Add relevant data to the narrative file.

  • --del Delete the specified system service, which is no longer managed by the chkconfig command, and delete related data in the system startup narrative file.

  • --level Specifies the execution level in which the reading system service should be turned on or off.

Example

List all commands known to c hkconfig.

# chkconfig --list
Copy after login

Start the service.

# chkconfig telnet on   //开启 Telnet 服务
# chkconfig --list      //列出 chkconfig 所知道的所有的服务的情况
Copy after login

Close the service

# chkconfig telnet off  // 关闭 Telnet 服务
# chkconfig --list      // 列出 chkconfig 所知道的所有的服务的情况
Copy after login

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to shut down services in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template