Logo

關閉 VPS 不需要的服務

VPS 買來主機商大多都已經調教的不錯了 ? 輸入這個指令查看目前運作中的服務
chkconfig --list |grep "3:on" |awk '{print $1}' |sort
抓看看有沒有漏網之魚~ 亂我兄弟者~ 必殺之! ? 我的只砍到剩這些 ?
service
該關的關一關,指令如下:
chkconfig xxx off // 範例:chkconfig mcstrans off
哪個該關呢~!? 請參考這篇文章來關閉阿莎布魯的服務不自量力 の Weithenn: CentOS 5.x-初始環境設定 ?
acpid // Advanced Configuration and Power Interface 電源進階設定,常用在 Laptop 上
anacron // 執行在 crontab 設定的時間沒有執行到的工作
apmd // Adventage Power Management daemon 偵測系統的電池電量,常用在 Laptop 上
atd // /etc/at.allow,/etc/at.deny 我大概都使用 crond 來達成
auditd // 稽核系統 /var/log/audit/audit.log,若 auditd 未執行中則稽核訊息會寫入 /var/log/messages (配合 SELinux)
autofs // 自動掛載檔案系統與週邊裝置 (如光碟、USB),常用在 Laptop 上
avahi-daemon // 當區網沒有 DNS 服務時會試著尋找提供 zeroconf 協定的主機
bluetooth // Bluetooth 藍芽,常用在 Laptop 上
crond // /etc/cron.* 排程服務
cpuspeed // 控制 CPU 速度主要用來省電,常用在 Laptop 上
cups // Common UNIX Printing System 使系統支援印表機
firstboot // 安裝完成後第一次啟動時的服務,設定 auth、firewall、keyboard…
gpm // 記錄週邊裝置的檔案資料,例如文字模式下可使用滑鼠
haldaemon // 使系統支援 plug and play 裝置
hidd // 使系統支援藍芽裝置,例如滑鼠,鍵盤
hplip // 使系統支援 HP 相關型號印表機
isdn // 使系統支援 Integrated Services Digital Network (ISDN) 環境
iptables // 使系統支援 IPTables Filrewall
ip6tables // 使系統支援 IPTables Filrewall IPv6
irqbalance // 使系統支援多個 CPU 環境當系統中斷請求時進行負載平衡的程序,所以單 CPU 的機器就不需要
kudzu // 使系統每次開機會都自動執行硬體偵測
lm_sensors // 使系統支援偵測主機版或硬體,常用在 Laptop 上
lvm2-monitor // 使系統支援 Logical Volume Manager 邏輯磁區
mcstrans // 主要用於配合 SELinux 服務
mdmonitor // 使系統支援 RAID 相關程序
messagebus // 使系統支援 plug and play 裝置
microcode_ctl // 使系統支援 Intel IA32 CPU 特色,所以 AMD CPU 不需要
netfs // Network File System Mounter 網路掛載系統 (如 NFS、Samba、NCP)
network // 使系統支援網卡
nfslock // 使系統支援 NFS Server 資料一致性功能
pcscd // 使系統支援 Smart Card
portmap // 使系統支援 NFS Service
readahead_early // 使系統再啟動時預先將相關檔案讀到記憶體內來加快啟動速度
restorecond // 使系統支援 SELinux 監控檔案狀態
rpcgssd // 使系統支援 NFSv4 Service
rpcidmapd // 使系統支援 NFSv4 Service
xfs // 使系統支援 X Window 字型
yum-updatesd // 使系統支援 YUM 自動更新服務 (上線機器還是先確認好再更新)
sendmail // 使系統支援 Sendmail
smartd // 使系統支援檢查硬碟狀態 (Hardware RAID 要改設定檔)
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 haldaemon stop ; chkconfig haldaemon off
service hidd stop ; chkconfig hidd off
service hplip stop ; chkconfig hplip 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 smartd stop ; chkconfig smartd off

關於 窮苦人家的小孩

In every democracy, the people get the government they deserve. ~Alexis de Tocqueville
上一篇:
下一篇:

您可能會喜歡

桃乃木かな 桃乃木香奈 Kana Momonogi

CloudCone全自動DD安裝Windows

前陣子VPS優惠 – Clou …

2 留言

  1. 通常OpenVZ系統的服務最少,比較不需要再特別去關閉什麼服務,如果你玩Xen或VMWare的話,因為比較接近一台真實的Linux系統,有些服務是依照系統狀況才能關的,你說會當機,那你就先全部恢復再逐一設定看看吧~ ?


    Benson:

    我試過 只留apache mysql 和基本服務
    一樣照當不誤

  2. 我試過 只留apache mysql 和基本服務
    一樣照當不誤

發佈留言