欢迎来到天天文库
浏览记录
ID:8970297
大小:58.27 KB
页数:6页
时间:2018-04-13
《linux下tomcat安装部署》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Linux下Tomcat的安装配置一.下载安装对应的jdk,并配置Java环境。官网下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html下载将jdk加压后放到/usr/local目录下: [root@master~]#chmod755jdk-6u5-linux-x64.bin[root@master~]#./jdk-6u5-linux-x64.bin[root@master~]#mvjdk1.6.0_05/usr/local 建立/usr/local/下
2、的jdk软连接方便以后版本升级: [root@master~]#ln-s/usr/local/jdk1.6.0_05//usr/local/jdk 配置环境变量:在/etc/profile中加入以下内容:JAVA_HOME=/usr/local/jdk1.6.0_05JAVA_BIN=/usr/local/jdk1.6.0_05/binPATH=$PATH:$JAVA_BINCLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexportJAVA_HOMEJAVA_BINPATHCLASSPATH保存退出[root@ma
3、ster~]source/etc/profile 查看java环境变量是否生效[root@master~]#java-versionjavaversion"1.6.0_05"Java(TM)SERuntimeEnvironment(build1.6.0_05-b13)JavaHotSpot(TM)64-BitServerVM(build10.0-b19,mixedmode)测试成功二.下载安装tomcat(http://tomcat.apache.org/)[root@master~]#unzipapache-tomcat-6.0.30.zip[root@master~]#mva
4、pache-tomcat-6.0.30//usr/local/[root@master~]cd/usr/local/[root@masterlocal]#ln-s/usr/local/apache-tomcat-6.0.30//usr/local/tomcat[root@masterlocal]#cdtomcat/bin/[root@masterbin]#ls[root@masterbin]#vimcatalina.sh添加以下内容:CATALINA_HOME=/usr/local/apache-tomcat-6.0.30/[root@masterlocal]#chmod+x*.
5、sh三.启动tomcat服务器[root@mastertomcat]# /usr/local/tomcat/bin/catalina.shstartUsingCATALINA_BASE: /usr/local/apache-tomcat-6.0.30/UsingCATALINA_HOME: /usr/local/apache-tomcat-6.0.30/UsingCATALINA_TMPDIR:/usr/local/apache-tomcat-6.0.30//tempUsingJRE_HOME: /usr/local/jdk1.6.0_05UsingCLASSPA
6、TH: /usr/local/apache-tomcat-6.0.30//bin/bootstrap.jar[root@masterlogs]#cd/usr/local/tomcat/logs/[root@masterlogs]#tail-fcatalina.out atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) atjava.lang.reflect.Method.invoke(Method.java:597)
7、 atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Jul4,201111:06:57AMorg.apache.coyote.http11.Http11ProtocolpauseINFO:PausingCoyoteHTTP/1.1onhttp-8080Jul
此文档下载收益归作者所有