1 / 32

WebServer & Tomcat

WebServer & Tomcat. By B. Venkateswarlu M.Tech Assoc Prof IT(Dept) Newton’s Institute of Engineering. Web Servers. Webserver is an application that provides the implementation for http

linus-levy
Download Presentation

WebServer & Tomcat

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WebServer & Tomcat By B. VenkateswarluM.Tech Assoc Prof IT(Dept) Newton’s Institute of Engineering

  2. Web Servers • Webserver is an application that provides the implementation for http • Web server can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver content that can be accessed through the Internet • The most common use of web servers is to host websites but there are other uses such as data storage or running enterpriseapplications

  3. The primary function of a web server is to deliver web pages on the request to Clients

  4. Why we need webserver? • In an Web or Enterprise Application perspective, we need a webserver as a first entry point since all the requests have to be originated from a single place. Ex: login page to the application. • Web Server is preferred to serve any static files and to produce dyanamic response • To regulate all our traffic of requests, we need a single point of control, which is webserver.

  5. Architecture of Web Server It maintains Servlet applications • Web Server It maintains JSP applications s1 Jsp1 s3 Jsp2 s2 Jsp3 Servlet Container JSP Container Security, Connection pooling, Cache, Transactions

  6. Below is the most recent statistics of the market share of the top web servers on the internet by Netcraftsurvey in January 2012.

  7. Apache Tomcat: • The Apache HTTP Server, commonly referred to as Apache is web server software notable for playing a key role in the initial growth of the World Wide Web. • Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundationthe initial growth of the World Wide Web. • Apache is open-source software • Apache provides a variety of MultiProcessing Modules

  8. Apache Tomcat • type: Web Server Software • vendor: Apache Software Foundation • version:6.0/7.0 (latest version-7.0.25) • /21-01-2012 • compatible with java 1.5/1.6 open source download: http://tomcat.apache.org

  9. Download and Install Tomcat 6 • In this section we will learn the process to downloading and installing Tomcat 6 on our computer system.

  10. Step 1: Installation of JDK:Before beginning the process of installing Tomcat on your system, ensure first the availability of JDK on your system program directory. Install it on your system if not already installed and then set the class path (environment variable) of JDK. To set theJAVA_HOME Variable: you need to specify the location of the java run time environment to support the Tomcat else Tomcat server can not run. . 

  11. Step 2: For setting the class path variable for JDK, do like this:

  12. Step 3: • The process of installing Tomcat 6.0 begins here from now. It takes various steps for installing and configuring the Tomcat 6.0. • For Windows OS, Tomcat comes in two forms: .zip file and .exe file (the Windows installer file). Here we are exploring the installation process by using the .exe file. First unpack the zipped file and simply execute the '.exe' file. 

  13. Just click on the 'Next' button to proceed the installation process.

  14. Steps 4:  A screen of License Agreement displays.  Click on the 'I Agree' button. 

  15. Step 5: A screen shot appears asking for the 'installing location' Choose the default components and click on he'Next'button.

  16. Step 6: A screen shot of 'Configuration Options' displays on the screen. Choose the location for the Tomcat files as per your convenience. You can also opt the default Location

  17. The port number will be your choice on which you want to run the tomcat server. The port number 8080 is the default port value for tomcat server to proceed the HTTP requests.  • The user can also change the 'port number' after completing the process of installation; for this, users have to follow the following tips. • Go to the specified location as " Tomcat 6.0 \conf \server.xml ". Within the server.xml file choose "Connector" tag and change the port number.  Now, click on the 'Next' button to further proceed the installation process. 

  18. Step 7: A Window of Java Virtual Machine displays on the screen

  19. This window asks for the location of the installed Java Virtual Machine. Browse the location of the JRE folder and click on the Install button. This will install the Apache tomcat at the specified location.

  20. Step 8: A processing window of installing displays on the screen. To get the information about installer click on the "Show details" button

  21. Step 9: A screen shot of 'Tomcat Completion' displays on the screen. Click on the 'Finish' button.

  22. Step 10: A window of Apache Service Manager appears with displaying the running process. Let the running process goes on.

  23. Step 11: After completing the installation process, the Apache Tomcat Manager appears on the toolbar panel like shown in the below picture. Configuring Tomcat Manager To Configure the Tomcat Manager, there are two ways; either user can configure Tomcat directly from the toolbar panel or can configure it from Control Panel Section.

  24. i-) Configuring from toolbar Panel To Configure Apache Tomcat web server from the toolbar panel, you have to press 'double click' on the appeared icon.

  25. A configured window appears on the desktop. Now, just click on the Startup button. The installation process will be completed. ii-) Configuration from the Control Panel To configure the Apache Tomcat Manager, Users will have to follow the follwing steps: Click on the Start up button -- select Control Panel -- Administrator Tool -- Services -- select Apache Tomcat.

  26. Now, Click on the start up button. The Apache Tomcat is now ready to function.

  27. To operate it, follow the below steps of processing To Start the Tomcat Server: 1.Start the tomcat server from the bin folder of Tomcat 6.0 directory by double clicking the "tomcat6.exe" file.  OR create a shortcut of this .exe file at your desktop. 2. Now Open web browser and type URL http://localhost:8080 in the address bar to test the server To Stop the Tomcat Server:  Stop the server by pressing the "Ctrl + c" keys.

  28. The screen of Apache Tomcat software looks like this:

  29. Startup/shutdown scripts and other useful files. Configuration files, including modules.xml, server.xml Where Tomcat places intermediate files (such as compiled JSP files) during its work. This is where Tomcat places its log files by default Temporary folder Jar files that are used for starting and stopping Tomcat Sample web applications. Any .war files placed here will be automatically expanded

  30. Change Apache Tomcat default Port 8080 to other Port number • Tomcat will run by default on TCP/IP port number 8080 • But there can be situations where there are some other servers running on this same port forcing you to change the port of one of the servers • Then how to change the port number from 8080 to some other port number?

  31. Changing Apache Tomcat default Port 8080 to other Port number i.e 4040 • Steps: • 1.Goto location C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf 2. Open server.xml file <Connector port=“8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

  32. 3. Change Connector port="8080" to Connector port=“4040" or some other port number. Make sure that the port number in not used by some other application • 4. Save server.xml and restart tomcat. • 5 .Now try running with the new port number i.e. http://localhost:4040

More Related