How to uninstall and reinstall Tomcat (with pictures and text)

How to uninstall and reinstall Tomcat (with pictures and text)

Uninstall tomcat9

1. Since the installation of Tomcat only needs to be unzipped to a directory, uninstallation also only needs to delete the original Tomcat directory

2. Delete the relevant registry. Press the shortcut key win+R to call out "Run", enter "regedit" and press Enter, click Agree to call out the registry management interface, press ctrl+F to find the relevant files of tomcat, enter "tomcat" to search and delete them one by one

3. Run cmd as an administrator and execute the command sc delete tomcat9 (the tomcat version I installed before is tomcat89.0.17, depending on your own version), delete the tomcat service


Uninstall successful!
You can start reinstalling now

Install Tomcat

Download tomcat and unzip it to a directory. I downloaded apache-tomcat-9.0.17-windows-x64 and unzipped it in my D drive, D:\apache-tomcat-9.0.17

Set environment variables in My Computer –> Properties –> Environment Variables

CATALINA_HOME=D:\apache-tomcat-9.0.17 (decompression directory)

Add %CATALINA_HOME\bin%;%CATALINA_HOME\lib% to PATH

After configuring the environment variables, open cmd as an administrator, enter the bin folder in Tomcat, and execute service.bat install


If the installation is successful, you can drag the startup.bat in the bin directory to the cmd window to start tomcat to verify whether the installation is successful.


Oh. Garbled? !

Solution to cmd garbled code when running tomcat

Go to the tomcat/conf/ directory and modify logging.properties
Find the line java.util.logging.ConsoleHandler.encoding = utf-8 and change it to java.util.logging.ConsoleHandler.encoding = GBK
Open notepad++ and press ctrl+F to locate the current position.


Modified to GBK
Restart and run again to solve the garbled code!

This is the end of this article about the implementation of uninstalling and reinstalling Tomcat (with pictures and text). For more relevant content about uninstalling and reinstalling Tomcat, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed graphic tutorial on installing and uninstalling Tomcat8 on Linux
  • cemtos 7 linux installation and uninstallation of tomcat 7 tutorial
  • Tomcat 7.0 installation and configuration details (picture and text)
  • How to install and configure Tomcat7.0 under window7
  • Basic configuration and installation of the free Tomcat server
  • Tomcat 9 installation-free configuration graphic tutorial (detailed)
  • Java novice environment to build Tomcat installation and configuration tutorial
  • Detailed explanation of the process of installing Tomcat7 under CentOS system
  • Tomcat installation graphic tutorial under Windows (installation version)

<<:  js to realize web message board function

>>:  Let's talk about the difference between MyISAM and InnoDB

Recommend

mysql 5.7.5 m15 winx64.zip installation tutorial

How to install and configure mysql-5.7.5-m15-winx...

Implementation of vertical centering with unknown height in CSS

This article mainly introduces the implementation...

How to set static IP in CentOS7 on VirtualBox6 and what to note

Install CentOS 7 after installing VirtualBox. I w...

How to prevent website content from being included in search engines

Usually the goal of building a website is to have...

jQuery canvas generates a poster with a QR code

This article shares the specific code for using j...

Solve the error problem caused by modifying mysql data_dir

Today, I set up a newly purchased Alibaba Cloud E...

Use of Docker UI, a Docker visualization management tool

1. Introduction to DockerUI DockerUI is based on ...

Docker installation and deployment of Net Core implementation process analysis

1. Docker installation and settings #Install Cent...

Implementation of react automatic construction routing

Table of contents sequence 1. Centralized routing...

Steps for Docker to build a private warehouse Harbor

Harbor Harbor is an open source solution for buil...