- Spring MVC:Beginner's Guide(Second Edition)
- Amuthan Ganeshan
- 282字
- 2021-07-14 10:49:43
Installing a web server
So far, we have seen how to install JDK and Maven. Using these tools, we can compile the Java source code into the .class
files and package these .class
files into the .jar
or .war
archives. However, how do we run our packaged archives? For this, we take the help of a web server, which will host our packaged archives as a running application.
Time for action - installing the Tomcat web server
Apache Tomcat is a popular Java web server and servlet container. We are going to use Apache Tomcat Version 8.0, which is the latest, but you can even use version 7.0. Let's take a look at how we can install the Tomcat web server:
- Go to the Apache Tomcat home page at http://tomcat.apache.org/.
- Click on the Tomcat 8.0 download link; it will take you to the download page.
- Click on the 32-bit/64-bit Windows Service Installer (pgp, md5, sha1) link; it will start downloading the installer.
- Once the download is finished, go to the downloaded directory and double-click on the installer; this will open up a wizard window.
- Just click through the Next buttons in the wizard, leaving the default options alone, and click on the Finish button at the end of the wizard. Note that before clicking on the Finish button, just ensure that you have unchecked Run Apache Tomcat checkbox.
Installing Apache Tomcat with the default option works successfully only if you have installed Java in the default location. Otherwise, you have to correctly provide the JRE path according to the location of your Java installation during the installation of Tomcat, as shown in the following screenshot:

The Java runtime selection for the Tomcat installation
- 工程軟件開(kāi)發(fā)技術(shù)基礎(chǔ)
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- R的極客理想:工具篇
- 深入淺出Serverless:技術(shù)原理與應(yīng)用實(shí)踐
- 數(shù)據(jù)結(jié)構(gòu)案例教程(C/C++版)
- Learning ArcGIS for Desktop
- HTML5秘籍(第2版)
- Procedural Content Generation for C++ Game Development
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程
- TMS320LF240x芯片原理、設(shè)計(jì)及應(yīng)用
- Frank Kane's Taming Big Data with Apache Spark and Python
- Mastering SciPy
- C語(yǔ)言程序設(shè)計(jì)與應(yīng)用實(shí)驗(yàn)指導(dǎo)書(shū)(第2版)
- Swift High Performance
- PHP Microservices