扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
1、Install J2SDK 1.4
下载 J2SDK1.4 的 LinuxRPM版本 j2sdk-1_4_0-linux-i386-rpm.bin,然后执行下面的操作:
chmod +x j2sdk-1_4_0_01-linux-i386-rpm.bin
./j2sdk-1_4_0_01-linux-i386-rpm.bin
rpm -ivh j2sdk-1_4_0_01-fcs-linux-i386.rpm
ln -s /usr/java/j2sdk1.4.0_01/ /usr/java/j2sdk
pico /etc/profile
### 增加如下内容:
### Add by Boban
JAVA_HOME=/usr/java/j2sdk
export JAVA_HOME
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CLASSPATH
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export PATH
重新登录让环境变量生效
2、Install Tomcat 4.0
下载Tomcat的linux binary版本,以及 mod_webapp.so,然后执行下列操作:
tar zxvf jakarta-tomcat-4.0.4.tar.gz
做 /pub/jakarta-tomcat-4.0.4/conf 目录下面server.xml中的其他相关配置(暂时不做也可以)。
/pub/jakarta-tomcat-4.0.4/bin/startup.sh
启动 Tomcat 服务,并且将它加到系统的启动程序中/etc/rc.d/rc.local
(用/pub/jakarta-tomcat-4.0.4/bin/shutdown.sh 停止Tomcat )
3、Install MySQL
tar zxvf mysql-3.23.51-pc-linux-gnu-i686.tar.gz
cd mysql-3.23.51-pc-linux-gnu-i686
./configure --prefix=/usr/local/mysql
cp support-files/mysql.server /etc/rc.d/init.d/
chmod 755 /etc/rc.d/init.d/mysql.server
ln -s mysql-3.23.51-pc-linux-gnu-i686 mysql
将@HOSTNAME@改成$HOSTNAME
设置密码
/usr/local/mysql/bin/mysqladmin -u root password
4、Install OpenSSL
cd /root/src
tar zxvf openssl-0.9.6d.tar.gz
cd openssl-0.9.6d
./config
make
make test
make install
5、Install mod_ssl
cd /root/src
tar zxvf mod_ssl-2.8.10-1.3.26.tar.gz
tar zxvf apache_1.3.26.tar.gz
cd apache_1.3.26
./configure
cd ..
cd mod_ssl-2.8.10-1.3.26
./configure --with-apache=../apache_1.3.26
6、Install PHP
cd /root/src
tar zxvf php-4.2.2.tar.gz
cd php-4.2.2
./configure --with-apache=../apache_1.3.26
--enable-memory-limit=yes --with-mysql
--enable-sockets --enable-debug=no --enable-track-vars
--with-java
make
make install
cp php.ini-dist /usr/local/lib/php.ini
7、Install Apache
cd ../apache_1.3.26
SSL_BASE=/usr/local/ssl ./configure
--enable-module=ssl --enable-module=so
--activate-module=src/modules/php4/libphp4.a
make
make certificate
make install
# 修改 /www/conf/httpd.conf,
# Options Indexes FollowSymLinks MultiViews -> Options FollowSymLinks MultiViews
# DirectoryIndex index.html -> DirectoryIndex index.html index.php3 index.php
# 增加
# LoadModule webapp_module libexec/mod_webapp.so
# WebAppConnection warpConnection warp localhost:8008
# WebAppDeploy examples warpConnection /examples/
# vi /www/conf/mime.types 增加
# application/x-httpd-php php php3
# 拷贝下载的 mod_webapp.so 到 /www/libexec
# 虚拟主机增加: php_admin_value
8、附注
##################################
## 设置示例 ##
##################################
# Apache目录认证设置
<Directory /usr/local/apache/htdocs/members>
Options Indexes FollowSymLinks
allowoverride authconfig
order allow,deny
allow from all
</Directory>
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。