预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共11页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

安置apache1,下载httpd-2.2.8.tar.bz2,解压为httpd-2.2.8文件。2,安置Apache #tarxzvfhttpd-2.2.8.tar.bz2 #cdhttpd-2.2.8 #./configure--prefix=/usr/local/apache2--enable-so--enable-rewriter #make #makeinstall #tarxzvfhttpd-2.2.8.tar.bz2#cdhttpd-2.2.8#./configure--prefix=/var/apache2--enable-so#make#makeinstall --prefix=/usr/local/apache2指明安置目次;--enable-so是为编译mod_jk.so做筹办。 跟着CentOS5Linux启动时主动启动apache#echo"/usr/local/apache2/bin/apachectlstart&">>/etc/rc.local Centos系统搭建tomcat服务! 将从sun公司网站上下载下来的JDK包移动到/usr/local/src/ 从apache网站上下载tomcat包,并移动到/usr/local/src/目录下 [root@centos5~]#cd/usr/local/src/ [root@centos5~]#chmodu+xjdk-6u20-linux-i586.bin [root@centos5~]#ls-l查看,如下: -rwxr--r—1rootroot80129716May212009jdk-6u20-linux-i586.bin 安装JDK,并设置下环境变量[root@centos5tarbag]#./jdk-6u20-linux-i586.binPleaseenter"yes"or"no".Doyouagreetotheabovelicenseterms?[yesorno]yes此处输入yesFormoreinformationonwhatdataRegistrationcollectsandhowitismanagedandused,see:http://java.sun.com/javase/registration/JDKRegistrationPrivacy.htmlPressEntertocontinue.....Done.[root@centos5tarbag]#mvjdk1.6.0_20/usr/local/java/[root@centos5tarbag]#/usr/local/java/bin/java-version 查看下java的版本信息javaversion"1.6.0_20"Java(TM)SERuntimeEnvironment(build1.6.0_20-b03)JavaHotSpot(TM)ClientVM(build11.3-b02,mixedmode,sharing)[root@centos5/]#vi/etc/profile设置java环境变量如下JAVA_HOME=/usr/local/java/ CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib PATH=$JAVA_HOME/bin:$PATH exportPATHCLASSPATHJAVA_HOME [root@centos5/]#source/etc/profile使环境变量生效[root@centos5/]#java-version javaversion"1.6.0_20"Java(TM)SERuntimeEnvironment(build1.6.0_20-b03)JavaHotSpot(TM)ClientVM(build11.3-b02,mixedmode,sharing) 从apache网站上下载tomcat包,并移动到/usr/local/src/目录下[root@centos5zhang]#cd/usr/loca/src/ [root@centos5tarbag]#tarxzvfapache-tomcat-6.0.20.tar.gz[root@centos5tarbag]#mvapache-tomcat-6.0.20/usr/local/tomcat[root@centos5tarbag]#cd/usr/local/tomcat/bin[root@centos5bin]#./startup.sh运行下tomcatUsingCATALINA_BASE:/usr/local/tomcatUsingCATALINA_HOME:/usr/local/tomcatUsingCATALINA_TMPDIR:/usr