Prerequisite for Tomcat Server
- java jdk
Download tomcat with below commands.
#cd /opt
#wget http://ftp.nluug.nl/internet/apache/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.zip
#unzip apache-tomcat-8.0.9.zip
#mv apache-tomcat-8.0.9 tomcat
Configure environment variable for Tomcat
#nano ~/.bashrc
Copy below line and paste in opened file and save.
export CATALINA_HOME=~/path/to/tomcat
Run below command to effective the change.
#~/.bashrc
Run Below command to Start Tomcat script.
#CATALINE_HOME/bin/startup.sh
You can see the webpage on localhost:8080 in your machine.
- java jdk
Download tomcat with below commands.
#cd /opt
#wget http://ftp.nluug.nl/internet/apache/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.zip
#unzip apache-tomcat-8.0.9.zip
#mv apache-tomcat-8.0.9 tomcat
Configure environment variable for Tomcat
#nano ~/.bashrc
Copy below line and paste in opened file and save.
export CATALINA_HOME=~/path/to/tomcat
Run below command to effective the change.
#~/.bashrc
Run Below command to Start Tomcat script.
#CATALINE_HOME/bin/startup.sh
You can see the webpage on localhost:8080 in your machine.