//
you're reading...
Apache Tomcat

Install Apache Tomcat on CentOS Linux

Install Apache Tomcat on CentOS Linux

Download and install the Apache Tomcat for Linux

For the Apache Tomcat Linux Installation, we want to download the Source Code Distributions version, in this case apache-tomcat-8.0.31.tar.gz

Extract the Tomcat package to /usr/local/

[root@NEWZONEWEB01 ~]# tar -xvzf apache-tomcat-8.0.31.tar.gz
[root@NEWZONEWEB01 ~]# cp -R apache-tomcat-8.0.31 /usr/local/

Set the environment for Tomcat

[root@NEWZONEWEB01 ~]# cd /root
[root@NEWZONEWEB01 ~]# vi .bash_profile

Add the follow content to the file .bash_profile

JAVA_HOME=/usr/lib/jvm/jdk1.7.0_80
JRE_HOME=/usr/lib/jvm/jdk1.7.0_80/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CATALINA_HOME=/usr/local/apache-tomcat-8.0.31
CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CATALINA_HOME/lib/jsp-api.jar:$CATALINA_HOME/lib/servlet-api.jar
export JAVA_HOME JRE_HOME PATH CLASSPATH CATALINA_HOME

Run the startup.sh under /usr/local/apache-tomcat-8.0.31/bin

Advertisements

About daviewning

I am an Oracle DBA

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: