1、MySQL
# groupadd mysql
# useradd -g mysql mysql
# cd /usr/local
# gunzip < ~/server/mysql-standard-4.0.20-pc-linux-i686.tar.gz | tar xvf -
# ln -s mysql-standard-4.0.20-pc-linux-i686 mysql
# cd mysql
# scripts/mysql_install_db --user=mysql
# chown -R root .
# chown -R mysql data
# chgrp -R mysql .
# bin/mysqld_safe --user=mysql &
# ./mysqladmin -u root password ‘password’ #使用mysqladmin修
改root的口令为 'password’
# tar -zxvf openssl-0.9.7d.tar.gz
# cd openssl-0.9.7d
# ./configure --prefix=/usr/local/openssl #设置安装路径
# make
# make install
3、配置Apache
# cd /usr/local/
# tar -zxvf ~sea/server/httpd-2.0.50.tar.gz
# ./configure --enable-so --enable-ssl --with-ssl=/usr/local/openssl --enable-rewrite
# make
# make install
生成 Apache 启动文件
# cd /etc/rc.d/init.d
# sed 's/sbin/atd/local/servers/apache/bin/httpd/g' atd > httpd
# sed 's/atd/httpd/g' httpd > /tmp/txt
# sed 's/at daemon/httpd daemon/g' /tmp/txt > httpd
# rm /tmp/txt
# chmod 755 httpd
# chkconfig --level 345 httpd on
# chkconfig --level 0126 httpd off
# cd /usr/local
# tar -zxvf ~/server/resin-3.0.8.tar.gz
# cd resin-3.0.8/
# ./configure --with-java-home=/usr/java/j2sdk1.4.2_05 --with-apxs=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache2