Escolar Documentos
Profissional Documentos
Cultura Documentos
1. Install JDK
Choose the correct version for your OS and download the latest JDK release from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
READ MORE:
Create a new /usr/java directory, move the downloaded jdk file to /usr/java and change to the created directory:
1
export JAVA_HOME=/usr/java/jdk1.7.0_04/
export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:$JAVA_HOME/bin
(http://www.rosehosting.com/blog/how-to-installphpbb-3-on-a-centos-6-vps/)
How to install phpBB 3 on a CentOS 6 VPS
(http://www.rosehosting.com/blog/how-to-install-phpbb3-on-a-centos-6-vps/)
# source .bash_profile
# echo $JAVA_HOME
# /usr/java/jdk1.7.0_04/
2. Install Tomcat 7
Download the latest Tomcat release (currently 7.0.27) from http://tomcat.apache.org/download-70.cgi
1
This will create /usr/share/apache-tomcat-7.0.27 directory. Optionally, you can rename this directory to tomcat7:
1
# mv /usr/share/apache-tomcat-7.0.27/ /usr/share/tomcat7
# cd /etc/init.d/
Using your favorite text editor, create a script called tomcat with the following text:
1
2
3
4
5
6
7
8
9
#!/bin/bash
# description: Tomcat Start - Stop - Restart
# processname: tomcat
# chkconfig: 234 20 80
JAVA_HOME=/usr/java/jdk1.7.0_04
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CATALINA_HOME=/usr/share/tomcat7
http://www.rosehosting.com/blog/how-to-install-tomcat-7-jdk-7/
1/4
4/7/2014
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# chmod +x tomcat
The default Tomcat port is 8080, so you can try to access it at http://domain.com:8080 where you should see Tomcats default home page.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.
vinay
January 26, 2013 (/blog/how-to-install-tomcat-7-jdk-7/#comment-28006)
this is really good tutorial.
i am to setup tomcat in first go.. thanks
Reply (/blog/how-to-install-tomcat-7-jdk-7/?replytocom=28006#respond)
Eduardo
April 12, 2014 (/blog/how-to-install-tomcat-7-jdk-7/#comment-43287)
Thanks!
Reply (/blog/how-to-install-tomcat-7-jdk-7/?replytocom=43287#respond)
Leave a Reply
Name (required)
Website
Comment
http://www.rosehosting.com/blog/how-to-install-tomcat-7-jdk-7/
2/4