Loading Tomcat

You can install Tomcat on your computer in two ways: using the Windows Installer or by downloading it as an archive. The first method is simpler, while the second allows you to manage all aspects of setting up and installing a web server.

Let's start with a simple way, and then you will decide for yourself which one you prefer.

You can download Tomcat from its official page . On this page, we can see various options for downloading: as an archive, which is enough to unpack, or as an installer.

There are many ways to install Tomcat, but for simplicity we will choose 32-bit/64-bit Windows Service Installer .

Installing and configuring Tomcat

After selecting this option, an installer will be downloaded to your computer, which you must run and accept the license agreement.

Then you need to configure the installed components:

Installing and configuring Tomcat

At this stage, you can select the components that we want to install, in particular, you can select the Service Startup item and then Tomcat will start automatically at system startup. You can select everything, or you can limit yourself to those components that are already selected by default.

Next, you will be prompted to configure ports and a number of additional Tomcat configuration points:

Installing and configuring Tomcat 2

The standard port for a web server on which it will accept requests is 80. But it may already be occupied by another web server. Or even such programs as Skype, Telegram and so on. Therefore, we will indicate the number 8081 in this field (but you can leave 80).

Then you will need to specify the location of the JRE that will be used:

Installing and configuring Tomcat 3

The installer usually determines the path to Java itself, but if you have more than one JRE installed, you can choose a different one.

And at the end, you will need to specify the folder in which to install Tomcat:

Installing and configuring Tomcat 4

I recommend leaving the default path. And after that, in fact, Tomcat will be installed.

After installation, on the final screen, leave the Run Apache Tomcat option selected and click on the Finish button. After that, Tomcat will be started and you will be able to work with it.

Installing and configuring Tomcat 5

Make sure Tomcat is running. To do this, let's turn to the browser line at http://localhost:8081 . In this case, 8081 is the port that was specified during the installation step above.

If Tomcat is installed and running correctly, then in the browser we will see some standard content:

Installing and configuring Tomcat 6

Starting and stopping the service

If you need to start or stop the Tomcat service on Windows, then you need to:

Step 1. Open Task Manager Ctrl+Shift+Esc.

Step 2. Open the Services tab and find the Tomcat service there.

Step 3. Stop the Tomcat9 service.

The right column displays its status Running/Running or Stopped/Stopped.

Right-click on the line Tomcat9 and click Stop Service / Stop.

To stop the service, click Stop Service, this item will be active if the Tomcat service is running.