とりあえず余計なサービスを解除して必要なサービスをインストール&稼働するように変更していく。
とりあえずいらないパッケージを削除。
yum erase gpm xinetd portmap cyrus-sasl httpd samba-common smadmin serversman net-snmp nscd device-mapper-multipath lm_sensors lvm2
mcstransも削除したかったが他のパッケージまで消されちゃうのでとりあえずサービスを起動しないようにする。
その他にも不要なサービスがあるのでchkconfigで削除
chkconfig --del mcstrans
chkconfig --del messagebus
chkconfig --del netconsole
chkconfig --del netfs
chkconfig --del netplugd
chkconfig --del rawdevices
chkconfig --del rdisc
chkconfig --del restorecond
サービスの要/不要はここを参考にhttp://www.obenri.com/_minset_wbel4/daemon_wbel4.html
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
gpm 0:off 1:off 2:on 3:off 4:on 5:on 6:off
httpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
lm_sensors 0:off 1:off 2:on 3:off 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:off 4:on 5:on 6:off
mcstrans 0:off 1:off 2:on 3:off 4:on 5:on 6:off
messagebus 0:off 1:off 2:off 3:off 4:on 5:on 6:off
netfs 0:off 1:off 2:off 3:off 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
portmap 0:off 1:off 2:off 3:off 4:on 5:on 6:off
rawdevices 0:off 1:off 2:off 3:off 4:on 5:on 6:off
restorecond 0:off 1:off 2:on 3:off 4:on 5:on 6:off
saslauthd 0:off 1:off 2:off 3:on 4:off 5:off 6:off
serversman 0:off 1:off 2:off 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
初期状態のサービスはこんな感じだった…はず。メモが残ってたけどいまいち確信が持てない。
以下のパッケージを追加インストール。
spamassassinは最初入れないでおこうと思ったけど、ちょっとSMTP開いただけですぐにやってくるSPAMに辟易したので多少重くなっ てもや むなし。
dovecotは迷ったけどGmailとかに転送して途中で消えてもナンだし、外向けに開いてなかったらそんなに問題じゃないだろうということで入 れることにする。
あとは自作したプログラムを二つほど追加。
fastcgi-wrapperは5/13に作った普通のCGIをFastCGIから呼び出すもの。
ssldoorはそのうち公開するかもしれないけど今は内緒。
これで定常状態で80MB近辺をうろうろする感じ。