(分外注明:本文内容均参考于互联网,颠末团体公家理论而总结,若设置装备安排中遇到成绩请联系我,梗概写的时候漏失了某些地方,感激网上尊长的经历,但愿更多的理论经历得以共享)本篇文章颁布发表于www.xker.com(小新技能网)
1.操纵零碎
RedHat Linux 9.0
2.所需软件
Apache 2.0.54
下载地点
http://apache.freelamp.com/httpd
下载该文件httpd-2.0.54.tar.gz
Tomcat5.5.9
下载地点
http://apache.justdn.org/jakarta/tomcat-5/v5.5.9/bin/
下载该文件jakarta-tomcat-5.5.9.tar.gz
Mod_jk 1.2.14
下载地点
http://apache.justdn.org/jakarta/tomcat-connectors/jk/source/jk-1.2.14/
下载该文件jakarta-tomcat-connectors-1.2.14-src.tar.gz
Jdk 1_5_0_04
下载地点
http://java.sun.com/j2se/1.5.0/download.jsp
下载该文件jdk-1_5_0_04-linux-i586-rpm.bin
下载时将所需软件包文件保管在/usr/local目次下
3.装置步骤
A 装置JDK
# cd /usr/local/
# chmod x jdk-1_5_0_04-linux-i586-rpm.bin
# ./jdk-1.5.0_04-linux-i586-rpm.bin
# cd /usr/java/
# ln -s /usr/java/jdk-1_5_0_04 /usr/local/java
# vi /etc/profile
#
添加如下内容
JAVA_HOME=/usr/java/jdk-1_5_0_04
>
PATH=/usr/java/jdk-1_5_0_04/bin:$PATH
export PATH JAVA_HOME >
B 装置Apache
# cd /usr/local/
# tar xvfz httpd-2.0.54.tar.gz
# cd httpd-2.0.54
# ./configure --prefix=/usr/local/apache --enable-module=so
# make
# make install
# cd /usr/local/apache/conf
# vi ./httpd.conf
将Listen 80 批改为Listen 127.0.0.1:80 (219行)
将ServerName 批改为ServerName LocalHost:80 (291行)
在DirectoryIndex中添加 index.jsp (394行)
# cd /usr/local/apache/bin/
# ./apachectl configtest
显示Syntax ok则诠释装置乐成
#./apachectl start
启动apache服务,阅读器中造访本机80端口,反省端口可否正常,输出127.0.0.1:80
# ./apachectl stop
封锁服务
备注:prefix定义apache的装置途径
C装置Tomcat
# cd /usr/local/
# tar xvfz jakarta-tomcat-5.5.9.tar.gz
# ln ?s /usr/local/jakarta-tomcat-5.5.9 /usr/local/tomcat
# vi /usr/local/tomcat/bin/catalina.sh
第46行插手此句
JAVA_HOME=/usr/java/jdk-1_5_0_04
启动办事后,造访本机8080端口,反省端口可否正常(输出127.0.0.1:8080)
# /usr/local/tomcat/bin/startup.sh /startup.bat
封锁服务
# /usr/local/tomcat/bin/shutdown.sh /shutdown.bat
D 装置JK
# cd /usr/local/
# tar xzvf jakarta-tomcat-connectors-1.2.14-src.tar.gz
# cd jakarta-tomcat-connectors-1.2.14-src/jk/native
# chmod 755 buildconf.sh
# ./buildconf.sh
# ./configure --with-apxs=/usr/local/apache/bin/apxs
# make
# make install
# cd /usr/local/jakarta-tomcat-connectors-jk1.2.14-src/jk/native/apache-2.0/
# cp mod_jk.so /usr/local/apache/modules/
来自: 新客网(www.xker.com) 详文参考:http://www.xker.com/page/e2007/0104/2859.html
版权声明:
原创作品,容许转载,转载时请务必以超链接情势标明文章 原始来由 、作者信息和本声明。否则将清查执法责任。