---
title: "Linux开机启动的服务"
author: "clark1231"
date: "2012-08-13T09:12:21Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2012-08-13T09:13:45Z"
id: 1629976
url: "https://caok1231.iteye.com/blog/1629976"
---

方法一，安装chkconfig或rcconf或者sysv-rc-conf这类控制系统启动的软件，运行他们，取消掉相关启动服务便可。

\[root@localhost ~]# chkconfig --list     显示开机可以自动启动的服务  
\[root@localhost ~]# chkconfig --add \*\** 添加开机自动启动\*\*\*服务  
\[root@localhost ~]# chkconfig --del \*\**   删除开机自动启动\*\*\*服务

 

方法二

1.增加或恢复开机启动项

update-rc.d xxxx defaults

2.删除某个开机启动项

update-rc.d -f xxxx  remove