Hello Everyone,
In this tutorial,
Let Us Install and Configure Apache Tomcat 8.0.23 on Ubuntu Server 15.04 – 64Bit
You can also install in Debian 8, Oracle Linux, Linux Mint 17 , RHEL Linux, CentOS, Fedora.
Download Apache Tomcat
http://tomcat.apache.org/
Install the Oracle Java 8 JDK(JRE/JDK)
Type 'su' and the update "sudo apt-get update" then below steps follow :-
Step1 :- sudo apt-get install openjdk-8-jre
Step2 :- sudo apt-get install openjdk-8-jdk
Step3 :- java -version
Download Java JDK 8 From Oracle Website
Website :- http://www.oracle.com/technetwork/java/javase/downloads/index.html
Watch My Video on How to install Oracle Java JDK 8
Watch Video :- https://www.youtube.com/watch?v=bd5BodEF5To&list=PLmMAzSMza_1e-bD-_wtYeP9mT52-XGMRj&index=55
Download and Install Apache Tomcat 8
Website :- http://tomcat.apache.org/download-80.cgi
Latest Version :- Tomcat 8 (i.e. 8.0.23)
Creating Tomcat New Folder in /opt
Step 1 :- sudo mkdir /opt/tomcat/ Or mkdir /opt/tomcat/ && cd /opt/tomcat
Step 2 :- cd /opt/tomcat
Download Apache Tomcat 8
Step 3 :- sudo wget http://www.interior-dsgn.com/apache/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.zip
Download MD5 Checksum
Step 4 :- sudo wget https://www.apache.org/dist/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.zip.md5
Verify the MD5 Checksum against the key
Step 5 :- cat apache-tomcat-8.0.23.zip.md5
Step 6 :- md5sum apache-tomcat-8.0.23.zip
Extract the Tomcat zip file and cd to ‘apache-tomcat-8.0.23 /bin/’ directory.
Step 7 :- sudo unzip apache-tomcat-8.0.23.zip
Step 8 :- cd apache-tomcat-8.0.23/bin
Make Linux scripts executable that is under ‘apache-tomcat-8.0.23/bin/’
Step 9 :- sudo chmod 700 /opt/tomcat/apache-tomcat-8.0.23/bin/*.sh
Create symbolic link of startup script as
Step 10 :- sudo ln -s /opt/tomcat/apache-tomcat-8.0.23/bin/startup.sh /usr/bin/tomcatup
Create Symbolic link for shutdown script as
Step 11 :- sudo ln -s /opt/tomcat/apache-tomcat-8.0.23/bin/shutdown.sh /usr/bin/tomcatdown
Start tomcat
Step 12 :- tomcatup
Type in Browser
Step 13 :- http://127.0.0.1:8080
Changing Apache Tomcat Port
First shutdown tomcat server
Step 14 :- tomcatdown
Open Server.xml file to Change port 8080 to 208 then save and exit.
Step 15 :- nano /opt/tomcat/apache-tomcat-8.0.23/conf/server.xml
Sample Output
<Connector port=“208" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Restart tomcat service again and point your browser to http://127.0.0.1:208
Step 16 :- Tomcatup
Configuring Apache Tomcat 8
By default the Tomcat page is accessed by you only due its security implementation so that unauthorized users don’t have access to it.
To access admin and other sections like Server Status, Manager App and Host Manager. You need to add user accounts for admins and managers.
To add a Tomcat user edit file ‘/opt/tomcat/apache-tomcat-8.0.23/conf/tomcat-users.xml‘, in your favorite editor.
Step 17 :- sudo nano /opt/tomcat/apache-tomcat-8.0.23/conf/tomcat-users.xml
Add the following lines just before ‘</tomcat-users>’
<role rolename="admin-gui"/>
<user username="admin" password=“cloud" roles="admin-gui"/>
<role rolename="manager-gui"/>
<user username="avi" password=“cloud123" roles="manager-gui"/>
Again, you need to restart Tomcat to take new changes into effect.
Step 18 :- tomcatdown
Step 19 :- tomcatup
After restarting Tomcat, make sure to access the admin other sections like Server Status, etc at http://127.0.0.1:208.
It you will be asked to Enter User_name and Password, you just created above, after login you will see something like the below interface
-------------------------------------------------------------------------------
For Your Information Only
I am Willing to Make a FREE or CHARGE Website, if YOU WANT ME TO MAKE A VIDEOS ON Different Technologies I WILL DO IT..
Share My Video, Like it, Watch Others Videos and Have any Quries Email me (itcloudnet@gmail.com)
----------------------------------------------------------------------------------
NOTE :- For Any Clarification Please Comment Below
Comment,
Like and
Share us and help us to spread.
####--------------------------------------------------------------------------------------####
Subscribe :- http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website :- http://www.cloudnetwork.in
Facebook :- http://facebook.com/itcloudnetwork
Twitter :- http://twitter.com/itcloudnet
Pinterset :- http://pinterset.com/itcloudnet
LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Google+ :- https://plus.google.com/u/0/107923552480070716949/posts
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........