Step 1: Verify JAVA in System
First we need to make sure that we have installed java on or system. JAVA is the first requirement of tomcat installation. Use following command to check if you have java installed already on your system. Try to keep java uptodate with latest version.
$ java -version
In case you do not have java installed use link: Install JAVA ( OpenJDK ) on Ubuntu
Step 2: Download Tomcat7 Archive
After configuring JAVA let’s download Apache tomcat archive file from Apache official site usinghttp://tomcat.apache.org/download-70.cgi or use below download command
$ cd /opt $ wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
After competed download extract archive file in /opt directory. You may change this location as per your setup.
$ tar xzf apache-tomcat-7.0.54.tar.gz $ mv apache-tomcat-7.0.54 tomcat7
Step 3: Setup Environment Variable
Before starting Tomcat, Configure environment variables using following command.
$ echo "export…
View original post 164 mots de plus