1. Turn of firewall service
/sbin/service iptables stop
/sbin/chkconfig iptables off
2. Update your system
yum update
3. Disable SELinux
File: /etc/selinux/config
SELINUX=disabled
Add RAM DISK
#dmesg | grep RAMDISK
RAMDISK driver initialized: 16 RAM disks of 16384k size 1024 blocksize
#vi /etc/grub.conf
...
kernel /vmlinuz-2.6.9-42.0.10.EL ro root=/dev/VolGroup00/LogVol00 ramdisk_size=150000
....
#vi /etc/rc.local
mke2fs -m 0 /dev/ram0
mount /dev/ram0 /home/ramdisk
chown root.root /home/ramdisk
chmod 1777 /home/ramdisk
| 預(yù)設(shè)開啟的服務(wù) |
建議 |
說明 |
| acpid |
停用 |
Advanced Configuration and Power Interface 電源進(jìn)階設(shè)定,常用在 Laptop 上 |
| apmd |
停用 |
Adventage Power Management daemon 偵測系統(tǒng)的電池電量,常用在 Laptop 上 |
| atd |
停用 |
/etc/at.allow,/etc/at.deny 我大概都使用 crond 來達(dá)成 |
| autofs |
停用 |
自動掛載檔案系統(tǒng)與週邊裝置 (如光碟、USB),常用在 Laptop 上 |
| avahi-daemon |
停用 |
當(dāng)區(qū)網(wǎng)沒有 DNS 服務(wù)時會試著尋找提供 zeroconf 協(xié)定的主機(jī) |
| bluetooth |
停用 |
Bluetooth 藍(lán)芽,常用在 Laptop 上 |
| cpuspeed |
停用 |
控制 CPU 速度主要用來省電,常用在 Laptop 上 |
| cups |
停用 |
Common UNIX Printing System 使系統(tǒng)支援印表機(jī) |
| firstboot |
停用 |
安裝完成後第一次啟動時的服務(wù),設(shè)定 auth、firewall、keyboard... |
| gpm |
停用 |
記錄週邊裝置的檔案資料,例如文字模式下可使用滑鼠 |
| haldaemon |
停用 |
使系統(tǒng)支援 plug and play 裝置 |
| hidd |
停用 |
使系統(tǒng)支援藍(lán)芽裝置,例如滑鼠,鍵盤 |
| hplip |
停用 |
使系統(tǒng)支援 HP 相關(guān)型號印表機(jī) |
| ip6tables |
停用 |
使系統(tǒng)支援 IPTables Filrewall IPv6 |
| isdn |
停用 |
使系統(tǒng)支援 Integrated Services Digital Network (ISDN) 環(huán)境 |
| lm_sensors |
停用 |
使系統(tǒng)支援偵測主機(jī)版或硬體,常用在 Laptop 上 |
| messagebus |
停用 |
使系統(tǒng)支援 plug and play 裝置 |
| nfslock |
停用 |
使系統(tǒng)支援 NFS Server 資料一致性功能 |
| pcscd |
停用 |
使系統(tǒng)支援 Smart Card |
| portmap |
停用 |
使系統(tǒng)支援 NFS Service |
| rpcgssd |
停用 |
使系統(tǒng)支援 NFSv4 Service |
| rpcidmapd |
停用 |
使系統(tǒng)支援 NFSv4 Service |
| yum-updatesd |
停用 |
使系統(tǒng)支援 YUM 自動更新服務(wù) (上線機(jī)器還是先確認(rèn)好再更新) |
|
| anacron |
視個人需求 |
執(zhí)行在 crontab 設(shè)定的時間沒有執(zhí)行到的工作 |
| auditd |
視個人需求 |
稽核系統(tǒng) /var/log/audit/audit.log,若 auditd 未執(zhí)行中則稽核訊息會寫入 /var/log/messages (配合 SELinux) |
| iptables |
視個人需求 |
使系統(tǒng)支援 IPTables Filrewall |
| irqbalance |
視個人需求 |
使系統(tǒng)支援多個 CPU 環(huán)境當(dāng)系統(tǒng)中斷請求時進(jìn)行負(fù)載平衡的程序,所以單 CPU 的機(jī)器就不需要 |
| lvm2-monitor |
視個人需求 |
使系統(tǒng)支援 Logical Volume Manager 邏輯磁區(qū) |
| mcstrans |
視個人需求 |
主要用於配合 SELinux 服務(wù) |
| mdmonitor |
視個人需求 |
使系統(tǒng)支援 RAID 相關(guān)程序 |
| microcode_ctl |
視個人需求 |
使系統(tǒng)支援 Intel IA32 CPU 特色,所以 AMD CPU 不需要 |
| netfs |
視個人需求 |
Network File System Mounter 網(wǎng)路掛載系統(tǒng) (如 NFS、Samba、NCP) |
| restorecond |
視個人需求 |
使系統(tǒng)支援 SELinux 監(jiān)控檔案狀態(tài) |
| smartd |
視個人需求 |
使系統(tǒng)支援檢查硬碟狀態(tài) (Hardware RAID 要改設(shè)定檔) |
| sendmail |
視個人需求 |
使系統(tǒng)支援 Sendmail |
| xfs |
視個人需求 |
使系統(tǒng)支援 X Window 字型 |
|
| crond |
啟動 |
/etc/cron.* 排程服務(wù) |
| kudzu |
啟動 |
使系統(tǒng)每次開機(jī)會都自動執(zhí)行硬體偵測 |
| network |
啟動 |
使系統(tǒng)支援網(wǎng)卡 |
| readahead_early |
啟動 |
使系統(tǒng)再啟動時預(yù)先將相關(guān)檔案讀到記憶體內(nèi)來加快啟動速度 |
| sshd |
啟動 |
使系統(tǒng)支援 SSH Service |
| syslog |
啟動 |
使系統(tǒng)支援 System Log Service |