Last active
August 31, 2015 13:44
Install Tomcat on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download and install Tomcat | |
cd /u01/download | |
# see https://tomcat.apache.org/download-70.cgi for latest version | |
wget "http://www.eu.apache.org/dist/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.zip" | |
# copy file and unzip it | |
cp apache-tomcat-7.0.64.zip /usr/share/apache-tomcat-7.0.64.zip | |
cd /usr/share | |
mkdir tomcat7 | |
unzip apache-tomcat-7.0.64.zip -d tomcat7 | |
# make a symbolic link so we can reference the latest version using /latest instead of a specific version | |
cd /usr/share/tomcat7 | |
ln -s apache-tomcat-7.0.64 latest | |
# create tomcat group and user | |
groupadd tomcat | |
useradd -s /bin/bash -g tomcat tomcat | |
chown -Rf tomcat:tomcat /usr/share/tomcat7/apache-tomcat-7.0.64/ | |
# set password | |
passwd tomcat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment