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".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
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]
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
Example
List all commands known to c hkconfig.
# chkconfig --list
Start the service.
# chkconfig telnet on //开启 Telnet 服务 # chkconfig --list //列出 chkconfig 所知道的所有的服务的情况
Close the service
# chkconfig telnet off // 关闭 Telnet 服务 # chkconfig --list // 列出 chkconfig 所知道的所有的服务的情况
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!