ADJ網路實驗室
打印

[介紹] Linux 下關閉不需要的服務

Linux 下關閉不需要的服務

檢查系統目前在 Run Level 3 有開起的服務

#chkconfig --list |grep "3:on" |awk '{print $1}' |sort


預設開啟的服務 建議 說明

acpid 停用 Advanced Configuration and Power Interface 電源進階設定,常用在 Laptop 上

apmd 停用 Adventage Power Management daemon 偵測系統的電池電量,常用在 Laptop 上

atd         停用 /etc/at.allow,/etc/at.deny 我大概都使用 crond 來達成

autofs 停用 自動掛載檔案系統與週邊裝置 (如光碟、USB),常用在 Laptop 上

avahi-daemon 停用 當區網沒有 DNS 服務時會試著尋找提供 zeroconf 協定的主機

bluetooth 停用 Bluetooth 藍芽,常用在 Laptop 上

cpuspeed 停用 控制 CPU 速度主要用來省電,常用在 Laptop 上

cups 停用 Common UNIX Printing System 使系統支援印表機

firstboot 停用 安裝完成後第一次啟動時的服務,設定 auth、firewall、keyboard...

gpm 停用 記錄週邊裝置的檔案資料,例如文字模式下可使用滑鼠

haldaemon 停用 使系統支援 plug and play 裝置

hidd 停用 使系統支援藍芽裝置,例如滑鼠,鍵盤

hplip 停用 使系統支援 HP 相關型號印表機

ip6tables 停用 使系統支援 IPTables Filrewall IPv6

isdn 停用 使系統支援 Integrated Services Digital Network (ISDN) 環境

lm_sensors 停用 使系統支援偵測主機版或硬體,常用在 Laptop 上

messagebus 停用 使系統支援 plug and play 裝置

nfslock 停用 使系統支援 NFS Server 資料一致性功能

pcscd 停用 使系統支援 Smart Card

portmap 停用 使系統支援 NFS Service

rpcgssd 停用 使系統支援 NFSv4 Service

rpcidmapd 停用 使系統支援 NFSv4 Service

yum-updatesd 停用 使系統支援 YUM 自動更新服務 (上線機器還是先確認好再更新)

anacron 視個人需求 執行在 crontab 設定的時間沒有執行到的工作

auditd 視個人需求 稽核系統 /var/log/audit/audit.log,若 auditd 未執行中則稽核訊息會寫入 /var/log/messages (配合 SELinux)

iptables 視個人需求 使系統支援 IPTables Filrewall

irqbalance 視個人需求 使系統支援多個 CPU 環境當系統中斷請求時進行負載平衡的程序,所以單 CPU 的機器就不需要

lvm2-monitor 視個人需求 使系統支援 Logical Volume Manager 邏輯磁區

mcstrans 視個人需求 主要用於配合 SELinux 服務

mdmonitor 視個人需求 使系統支援 RAID 相關程序

microcode_ctl 視個人需求 使系統支援 Intel IA32 CPU 特色,所以 AMD CPU 不需要

netfs 視個人需求 Network File System Mounter 網路掛載系統 (如 NFS、Samba、NCP)

restorecond 視個人需求 使系統支援 SELinux 監控檔案狀態

smartd 視個人需求 使系統支援檢查硬碟狀態 (Hardware RAID 要改設定檔)

sendmail 視個人需求 使系統支援 Sendmail

xfs 視個人需求 使系統支援 X Window 字型

crond 啟動 /etc/cron.* 排程服務

kudzu 啟動 使系統每次開機會都自動執行硬體偵測

network 啟動 使系統支援網卡

readahead_early 啟動 使系統再啟動時預先將相關檔案讀到記憶體內來加快啟動速度

sshd 啟動


使系統支援 SSH Service


syslog      啟動


使系統支援 System Log Service


service acpid stop ; chkconfig acpid off

service apmd stop ; chkconfig apmd off

service atd stop ; chkconfig atd off

service auditd stop ; chkconfig auditd off

service autofs stop ; chkconfig autofs off

service avahi-daemon stop ; chkconfig avahi-daemon off

service bluetooth stop ; chkconfig bluetooth off

service cpuspeed stop ; chkconfig cpuspeed off

service cups stop ; chkconfig cups off

service firstboot stop ; chkconfig firstboot off

service gpm stop ; chkconfig gpm off

service haldaemon stop ; chkconfig haldaemon off

service hidd stop ; chkconfig hidd off

service hplip stop ; chkconfig hplip off

service ip6tables stop ; chkconfig ip6tables off

service isdn stop ; chkconfig isdn off

service lm_sensors stop ; chkconfig lm_sensors off

service mcstrans stop ; chkconfig mcstrans off

service messagebus stop ; chkconfig messagebus off

service netfs stop ; chkconfig netfs off

service nfslock stop ; chkconfig nfslock off

service pcscd stop ; chkconfig pcscd off

service portmap stop ; chkconfig portmap off

service restorecond stop ; chkconfig restorecond off

service rpcgssd stop ; chkconfig rpcgssd off

service rpcidmapd stop ; chkconfig rpcidmapd off

service yum-updatesd stop ; chkconfig yum-updatesd off

service smartd stop ; chkconfig smartd off






TOP

ARTERY.cn