长拳的运动特点:Linux Slim

来源:百度文库 编辑:九乡新闻网 时间:2024/07/04 19:31:41
Linux Slim 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

預設開啟的服務 建議 說明 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