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

HTML simple web form creation example introduction

<input> is used to collect user information ...

HTML table markup tutorial (15): table title

<br />This tag can be used to directly add a...

How to use jsx syntax correctly in vue

Table of contents Preface Virtual DOM What is Vir...

Command to view binlog file creation time in Linux

Table of contents background analyze method backg...

Implementation of docker-compose deployment of zk+kafka+storm cluster

Cluster Deployment Overview 172.22.12.20 172.22.1...

Docker View JVM Memory Usage

1. Enter the host machine of the docker container...

This article will help you understand the life cycle in Vue

Table of contents 1. beforeCreate & created 2...

CSS pseudo-class: empty makes me shine (example code)

Anyone who has read my articles recently knows th...

Example of how to reference environment variables in Docker Compose

In a project, you often need to use environment v...

How to design a web page? How to create a web page?

When it comes to understanding web design, many p...

How to replace all tags in html text

(?i) means do not match case. Replace all uppercas...

Implementing a simple web clock with JavaScript

Use JavaScript to implement a web page clock. The...

How to deploy FastDFS in Docker

Install fastdfs on Docker Mount directory -v /e/f...

Detailed explanation of JavaScript program loop structure

Table of contents Select Structure Loop Structure...