分类: 其他平台
2013-08-20 14:54:55
Install Tomcat 7 on CentOS, RHEL, or Fedora
This post will cover installing and basic configuration of Tomcat 7 on CentOS 5.x. or CentOS 6.x
Tomcat 7 implements the JavaServer Pages 2.2 and Servlet 3.0 specifications and a number of new features. The Manager application also has a new look and finer-grain roles and access than 6.x
In this post, we'll install Tomcat 7, the new JDK 7, configure Tomcat as a service, create a start/stop script, and (optionally) configure Tomcat to run under a non-root user.
We will also configure basic access to Tomcat Manager and take a quick look at memory management using JAVA_OPTS
Finally, we will look at running Tomcat on port 80 as well as some strategies for running Tomcat behind Apache.
I have just updated this post with Tomcat 7.0.29, the current stable release of Tomcat 7.
If you are using a different release, simply change the file names below accordingly.
To begin, we'll need to install the Java Development Kit (JDK) 7
JDK 1.6 is the minimum JDK version for Tomcat 7.