1. Install JDKNote: Installing tomcat requires configuring jdk first One is yum installation One is manual installation (personally recommended manual installation) Manual Installation1. Go to Oracle's official website to download the jdk version you need to install. I use jdk-8u171-linux-x64.tar.gz here 2. Put the compressed package in the /usr/local/jdk directory. The jdk directory needs to be created manually. It can also be called java. You can give it any name (see the name to know the meaning), and then unzip the compressed package. Enter the following command: tar zxvf jdk-8u172-linux-x64.tar.gz After successful decompression Go to the profile file under etc Add the following information at the end of the file: export JAVA_HOME=/usr/local/jdk/jdk1.8.0_172 export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/ export PATH=$PATH:$JAVA_HOME/bin To check whether JDK is installed successfully, enter the command java -version. 2. TomcatInstall using yum yum install tomcat Check Tomcat status systemctl status tomcat Start Tomcat systemctl start tomcat.service Install the Tomcat page plugin yum install tomcat-webapps tomcat-admin-webapps Increase the port number firewall-cmd --zone=public --add-port=8080/tcp --permanent Firewall systemctl restart firewalld It would be nice if this interface came out This is the end of this article about the detailed steps of installing JDK and Tomcat in Linux environment. For more relevant content about installing JDK and Tomcat in Linux, please search the previous articles of 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Example of creating circular scrolling progress bar animation using CSS3
>>: Essential for front-end development: 12 browser compatibility testing tools recommended
What are :is and :where? :is() and :where() are p...
Why is the title of the article “Imitation Magnif...
The <script> tag In HTML5, script has the f...
1. Prepare in Advance For your convenience, I cre...
As the data stored in the MySQL database graduall...
Table of contents 1. Example 2. Create 100 soldie...
background During development, we may need some s...
Table of contents 1. Introduction 2. Configuratio...
1. Windows Server 2019 Installation Install Windo...
1. Background of the incident: Because of work ne...
This article describes the MySQL user rights mana...
HTML page jump: window.open(url, "", &q...
I just started working a few days ago and install...
Table of contents 1 Install Docker 2 Configuring ...
Table of contents Why do databases need indexes? ...