[ 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
First query table structure (sys_users): SELECT *...
Download the installation package from the offici...
Web front-end optimization best practices: conten...
Why did I use this? It all started with the makin...
The interviewer will sometimes ask you, tell me h...
Table of contents 1. Function signature 2. Functi...
1. Prerequisites JDK has been installed echo $PAT...
Preface: I recently encountered the problem of in...
1. Background Generally, in a data warehouse envi...
What does linux cd mean? In Linux, cd means chang...
1. Favicon.cc To create ico icon websites online,...
1. Check the firewall status Check the firewall s...
1. Create a centos7.6 system and optimize the sys...
<br />Table is an awkward tag in XHTML, so y...
Table of contents 1. Customize the network to rea...