仕事でRedHat Enterprise Linux 5を使わなければならなくなったので、しかたがないのでCentOSを。
というわけで、ちっとも気合いが入りませんが、やったことのメモを。
これで、取りあえず最小限は設定できたと言うことにする。本当なら様々調整して、いらないportを閉じてなど考えるんだけど、VMware fusion上で試験するだけだし。
次にJAVA関係をInstall
これでOKかな?
yumの調整
# yum install yum-fastestmirror
CentOSPlusを追加
# vi /etc/yum.repos.d/CentOS-Base.repo [centosplus] の enabled=0 を enabled=1 にする
Fedora EPEL リポジトリを設定
# wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm # rpm -ivh epel-release-5-3.noarch.rpm
RPMforge リポジトリを設定
# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
サードパーティのリポジトリを設定
# vi /etc/yum.repos.d/thirds.repo [flash] name=macromedia.mplug.org - Flash Plugin baseurl=http://macromedia.mplug.org/rpm http://sluglug.ucsc.edu/macromedia/rpm http://ruslug.rutgers.edu/macromedia/rpm http://macromedia.rediris.es/rpm enabled=0 gpgcheck=1 gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY [atrpms] name=Redhat Enterprise Linux $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable enabled=0 gpgcheck=1 gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
GPG KeyのImport
# rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
KDE-RedHatを設定
# cd /etc/yum.repos.d/ # wget http://apt.kde-redhat.org/apt/kde-redhat/redhat/kde.repo
kde.repoを編集し、enabled=1 の行を enabled=0 と書き換えておく.
プラグインをインストール:
# yum install yum-fastestmirror # yum install yum-allowdowngrade
最終的な設定
ソフトウェアをアップデートする
# yum update
Lighttpdのinstall
# yum install lighttpd lighttpd-fastcgi
Lighttpdの設定
# vi /etc/lighttpd/lighttpd.conf # /sbin/service lighttpd start # /sbin/chkconfig lighttpd --level 3 on # /sbin/chkconfig lighttpd --level 4 on # /sbin/chkconfig lighttpd --level 5 on </pre> iptablesの設定 <code> # vi /etc/sysconfig/iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT # /sbin/service iptables stop # /sbin/service iptables start
動いた。