Apache/Tomcat Installation on Linux
- Step 1: Downloads Apache Tomcat
- Step 2: Create a user called “tomcat” to own the Tomcat installation.
# useradd tomcat
- Step 3: Change user
# su – tomcat
- Step 4: FTP and untar Downloaded to tomcat user base directory
$ tar xzf /tmp/jdk-8u77-linux-x64.tar.gz
- Step 5: Set the following environment variables and append them to the “/home/tomcat/.bash_profile” so they are set for subsequent logins. Remember to set the desired JAVA_HOME correctly.
export JAVA_HOME=/home/tomcat/jdk1.8.0_77
export CATALINA_HOME=/home/tomcat/apache-tomcat-7.0.68
export CATALINA_BASE=$CATALINA_HOME
$ $CATALINA_HOME/bin/startup.sh
$ $CATALINA_HOME/bin/shutdown.sh
Responses