日期:2014-05-01 浏览次数:20474 次
第一部分:web服务器的配置
(一) 下载文件:(假设全部放在~/server下面)
httpd-2.0.50.tar.gz
http://apache.linuxforum.net/dist/httpd/httpd-2.0.50.tar.gz
mysql-standard-4.0.20-pc-linux-i686.tar.gz
http://dev.mysql.com/get/Downloads/MySQL-4.0/mysql-standard-4.0.20-pc-linux-i686.tar.gz/from/http://mysql.ihostunit.com/
php-5.0.0.tar.gz
http://cn.php.net/get/php-5.0.0.tar.gz/from/this/mirror
resin-3.0.8.tar.gz
http://www.caucho.com/download/resin-3.0.8.tar.gz
openssl-0.9.7d.tar.gz
ftp://ftp.openssl.org/source/openssl-0.9.7d.tar.gz
j2sdk-1_4_2_05-linux-i586-rpm.bin
http://192.18.97.74/ECom/EComTicketServlet/BEGINjsecom8b.sun.com-10d7%3A40faaebd%3A6ca521da7aa699f/-2147483648/452386287/1/489890/489674/452386287/2ts+/westCoastFSEND/j2sdk-1.4.2_05-oth-JPR/j2sdk-1.4.2_05-oth-JPR:3/j2sdk-1_4_2_05-linux-i586-rpm.bin
gd-2.0.27.tar.gz
http://www.boutell.com/gd/http/gd-2.0.27.tar.gz
(二) 安装
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’
系统启动时自动运行:
# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
用ntsysv设置使mysql每次启动都能自动运行。
至此mysql安装完毕,你可以这样起动你的mysql服务
# /etc/rc.d/init.d/mysqld start
2、安装openssl
cd ~/server
# 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
#