CentOS 5 導入後 設定
インストール完了後の作業
パッケージ管理、yumの設定
Yumの接続先を自動で最も早い場所にする
# yum install yum-fastestmirror
GPG公開鍵をインストール
# rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
ソフトウェアをアップデート
# yum update
システムログ保存期間の変更
システムログの保存期間を1年間(53週)に変更する.
設定:/etc/logrotate.confの内容を以下のように変更
rotate 53
追加パッケージインストール
yumからRedHat系OS向けに4,000以上のプロジェクトをRPM化して提供しているrpmforgeのパッケージが扱えるようにしてみましょう
http://dag.wieers.com/rpm/FAQ.php#B
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
オプション指定のときだけrpmforgeを見るように設定ファイルを書き換えます。
# vi /etc/yum.repos.d/rpmforge.repo
enabled = 1
enabled = 0
yum に --enablerepo=rpmforge オプションを付加することで、rpmforgeのRPMを見ます。
どのくらいファイル数が増えるか比較してみると
# yum list | wc -l
2643
# yum list --enablerepo=rpmforge | wc -l
6630
不要なサービスの停止
1)起動サービスの確認
# chkconfig --list | grep :on
2)停止サービス
#chkconfig acpid off
#chkconfig anacron off
#chkconfig apmd off
#chkconfig atd off
#chkconfig bluetooth off
#chkconfig cups off
#chkconfig mdmonitor off
#chkconfig yum-updatesd off
#chkconfig netfs off
#chkconfig nfslock off
#chkconfig portmap off
#chkconfig rpcgssd off
#chkconfig rpcidmapd off