ubuntu安装tomcat5.5
2007-12-19 13:07
441 查看
HOWTO: Install Tomcat 5.5
Installing Tomcat on UbuntuVersions:
SDK: 1.5
JRE: 1.5
Tomcat: 5.5
Step 1 – Install JRE and SDK
Use the advice here to install these packages
You can verify that both items were installed corectly, by checking that you get a response when typing in terminal:
Code: |
java -version javac -help |
Download tomcat 5.5 from http://jakarta.apache.org/site/downloads/
In this example I am using jakarta-tomcat-5.5.9.tar.gz
Uncompress the file:
Code: |
tar xvfz jakarta-tomcat-5.5.9.tar.gz |
Step 3 – Add tomcat
Place the uncompressed package in:
/usr/local/
Step 4 – Set JAVA_HOME and CLASSPATH
You need to point out where you installed Java SDK. You will have to edit the file '.bashrc'. Backup this file first!
In terminal type:
Code: |
gedit ~/.bashrc |
File:~/.bashrc |
#Stuff we added to make tomcat go export JAVA_HOME=/usr/lib/j2sdk1.5-sun/ export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-api.jar |
Save and close. You will have to log out and back in again before these changes take effect.
The next steps are optional. They are for setting tomcat up to be used as a development environment.
Skip to the last step ( Step 8 ) if you just want to start tomcat how it is.
Step 5 – Change default port number
Tomcats default port number is 8080. To change it to 80 or another number do the following.
In terminal type:
Code: |
gedit usr/local/tomcat/conf/server.xml |
Code: |
<Connector port="8080" ... maxThreads="150" minSpareThreads="25" ... |
Step 6 – Turn on Servlet reloading
In terminal type:
Code: |
gedit usr/local/tomcat/conf/context.xml |
File:/usr/local/tomcat/conf/context.xml |
<Context> |
File:/usr/local/tomcat/conf/context.xml |
<Context reloadable="true"> |
Step 7 – Enable Invoker Servlet
In terminal type:
Code: |
gedit usr/local/tomcat/conf/web.xml |
File:/usr/local/tomcat/conf/web.xml |
<servlet> <servlet-name>invoker</servlet-name> <servlet-class> org.apache.catalina.servlets.InvokerServlet </servlet-class> ... </servlet> |
File:/usr/local/tomcat/conf/web.xml |
<servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> |
Step 8 – Start tomcat
Tomcat should now be ready to run.
In terminal type:
Code: |
sh /usr/local/tomcat/bin/startup.sh |
File:/usr/local/tomcat/bin/startup.sh |
Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/lib/j2sdk1.5-sun/ |
To stop tomcat type:
Code: |
sh /usr/local/tomcat/bin/shutdown.sh |
相关文章推荐
- Ubuntu 8.04下安装配置Tomcat5.5
- Ubuntu 8.04下安装配置Tomcat5.5经验分享
- Ubuntu 8.04下安装配置Tomcat5.5经验分享
- ubuntu 10.04 下安装配置 tomcat 5.5
- Ubuntu8.10安装JDK1.6,Tomcat5.5,eclipse3.4
- 【Linux】Ubuntu下jdk,mysql,tomcat的安装与配置
- Ubuntu 下 Tomcat7 的安装和配置
- Ubuntu 下的Tomcat 安装犯的一个不可能犯的错误
- 从安装Ubuntu9.04到安装JDK,tomcat6.0,安装myeclipse7.1,成功发布web项目详细过程
- ubuntu 12.04 下tomcat 的安装
- 第一篇:VMware7.0.1上安装ubuntu10.04和CentOS5.5
- ubuntu 安装tomcat
- 在 ubuntu amazon ec中安装tomcat 和jdk
- ubuntu下tomcat安装配置及idea下建立jps工程中遇到的小问题
- ubuntu 14.04 安装和配置 tomcat
- 在一台windows/ubuntu机器上同时安装多个tomcat服务器
- Ubuntu10.10 64位安装jdk-6u-linux-x64-rpm.bin和tomcat6.0.33
- ubuntu mysql5.5安装备忘
- Ubuntu安装TomCat
- 安装ActiveBPEL引擎(tomcat5.5+mysql5.1+ActiveBPEL5.0.2)