How to install and uninstall tomcat on centos

I used to install tomcat on the centos command line before, but after the installation, I found that there were a lot of files missing in the bin path, which made me uncomfortable.

Uninstall tomcat

First log in to your own server console,
Then enter sudo yum remove tomcat

Check if it has been deleted afterwards
sudo systemctl status tomcat

This means that it has been completely deleted

Install tomcat

Here I suggest that it is better to download it through the official website, upload it to the server and decompress it. If you operate it through the yum command, the file may be missing.
First of all [Official website download address] (https://tomcat.apache.org/download-90.cgi)

Then enter the command line through WIN+R and enter cmd
Upload the files we downloaded to our server
First check where the file you downloaded is, and then first change the path to our corresponding path
For example, my:

After using the scp command to upload (scp file name user@ip:/target address)
scp apache-tomcat-9.0.30.tar.gz [email protected]:/home/tomcat
After that, we just need to unzip the files on the server
First, first convert the path to the path where the file is located

Then unzip the file tar -zxvf apache-tomcat-9.0.30.tar.gz

After that, restart the tomcat service.
If the IP: 8080 is entered in the server at the end, the following screen appears, indicating that the installation is successful

Recommended Posts

How to install and uninstall tomcat on centos
[Graphic] How to install tomcat on centos
How to install and configure Elasticsearch on CentOS 7
How to install and use Docker on CentOS 7
How to install and configure VNC on CentOS 8
How to install and use Composer on CentOS 8
How to install and configure Redis on CentOS 8
How to install Node.js and npm on CentOS 8
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and configure phpMyAdmin on CentOS 6
How to install and configure Owncloud on CentOS 8
How to install and configure Redmine on CentOS 8
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
How to install and configure NFS server on CentOS 8
How to install and use Cockpit on CentOS 8/RHEL 8
How to install and configure Postfix mail server on CentOS8
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
R&D: How To Install Python 3 on CentOS 7
How to install Apache Tomcat 8 on Ubuntu 16.04
How to install GCC compiler on CentOS 7
How to install offline JDK1.8 on centos7.0
How to install Pycharm and Ipython on Ubuntu 16.04/18.04
How to install and configure Gogs on Ubuntu 18.04
How to install Visual Studio Code on CentOS 8
How to install and configure Cyberpanel on Ubuntu 18.04
How to install RPM packages on CentOS Linux
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04