[ Linux installation of Tomcat8 ] Uninstall Tomcat - Stop Tomcat first # systemctl stop tomcat # yum remove tomcat rpm installed can be removed with yum remove tomcat Install Apache Tomcat8 using the open source image download from Central China Normal University of Science and Technology # wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.5.37/bin/apache-tomcat-8.5.37.tar.gz Unzip Tomcat and delete the installation package - you can set the storage location you want when unzipping # rm -rf apache-tomcat-8.5.37.tar.gz # tar -vzxf apache-tomcat-8.5.37.tar.gz Move Tomcat to /usr/local/ and rename it # mv apache-tomcat-8.5.37 /usr/local/tomcat Start Tomcat # cd /usr/local/tomcat/bin # ./startup.sh Check whether the Tomcat service is started Shutdown Tomcat # cd /usr/local/tomcat/bin # ./shutdown.sh Check Tomcat version # cd /usr/local/tomcat/bin # ./version.sh server.xml configuration # vim /usr/local/tomcat/conf/server.xml <Connector executor="tomcatThreadPool" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="1000" minSpareThreads="100" maxSpareThreads="200" acceptCount="1000" disableUploadTimeout="true" connectionTimeout="20000" URIEncoding="UTF-8" enableLookups="false" compression="on" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain,image/gif,image/jpg,image/png" redirectPort="8443" /> Set startup Edit rc.local file Add the last line /root/apache-tomcat-8.5.37/bin/startup.sh /usr/local/tomcat/bin/startup.sh
Restart the server to take effect (the virtual machine will restart) # reboot Tomcat Directory Structure webapps directory structure Summarize The above is a detailed graphic tutorial on how to install and uninstall Tomcat8 in Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to add file prefixes in batches in Linux
>>: A brief summary of all encapsulation methods in Vue
The configuration is very simple, but I have to c...
During this period of time, I was studying docker...
Table of contents Parent component listBox List c...
In higher versions of Tomcat, the default mode is...
Under the requirements of today's responsive ...
Introducing Server-U software Server-U is a very ...
When creating a MySQL container with Docker, some...
Here are some points to note when registering Tom...
1. Why set maxPostSize? The tomcat container has ...
Table of contents 1. Index Type 1. B+ Tree 2. Wha...
Detailed explanation of linux touch command: 1. C...
1. Download the software 1. Go to the MySQL offic...
Page directory structure Note that you need to mo...
This article introduces how to solve the problem ...
I used ECharts when doing a project before. Today...