首先通过 rpm -qa|grep gcj 可查看已安装的旧版本的JDK。 使用 yum -y remove java[version] 可删除旧版本。
JDK
改变文件归属:chmod root jdk-1_5_0_11-linux-i586-rpm.bin
改变文件属性:chmod 700 jdk-1_5_11-linux-i586-rpm.bin
执行:./jdk-1_5_11-linux-i586-rpm.bin
移动文件至想安装的目录: mv jdk-1_5_11/ /usr/
Apache
解压文件:tar -zxvf httpd-2.2.6.tar.gz
编译并安装:
./configure --enable-so
make
make install
配置workers(/usr/local/apache2/conf/workers.properties):
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=wlb,jkstatus
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=127.0.0.1
worker.ajp13w.port=8009
#
# Defining a load balancer
#
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
在Conf文件中添加如下内容(/usr/local/apace2/conf/httpd.conf)
LoadModule jk_module modules/mod_jk.so
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Tomcat
解压:tar -zxvf apache-tomcat-5.5.25.tar.gz -C /usr/local/
创建快捷方式:ln -s tomcat-5.5.25 tomcat
Tomcat-connent
解压:tar -zxvf tomcat-connectors-1.2.25-src.tar.gz
cd tomcat-connectors-1.2.25-src/native
编译并安装:
./configure --with-apxs=/usr/local/apache2/bin/apxs
make && make install
拷贝至Apache:cp apache-2.0/mod_jk.so /usr/local/apache2/modules/
Mysql
直接下载Server、Client programs的RPM格式文件,下载后直接安装即可。
下载地址:http://dev.mysql.com/downloads/mysql/5.1.html#linux-x86-32bit-rpm