In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge about how to deploy and install the Java+Tomcat environment. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Install the java environment
First of all, let's go to the java website to download jdk. Here I download the jdk1.8 version.
Click accept license agreement to choose a good version to download, you need to register an oracle account to log in and download!
Copy the downloaded jdk package to the centos7 root directory. It is recommended to use winscp.
Create a java installation directory
Mkdir-p / usr/local/java
Extract the jdk package to the java installation directory
Tar-zxvf jdk-8u211-linux-x64.tar.gz-c / usr/local/java/
Configure environment variables
Vim / etc/profile.d/java.sh
Export java_home=/usr/local/java/jdk1.8.0_211export class_path= "$java_home/lib:$java_home/jre/lib" export path=$path:$java_home/bin
Make the configuration effective immediately
Source / etc/profile
Verify that the java environment is configured successfully
Install the tomcat environment
Download the installation package on the official website:
Here I choose tomcat8 archives to view the historical version.
I choose v8.5.5 here. Remember not to enter src to download the installation package. You will encounter the problem of not finding bootstarp.jar in the bin directory. Go to the bin directory and download the code package.
Extract it to the installation directory
Tar-zxvf apache-tomcat-8.5.5.tar.gz-c / usr/local/
Create a soft link
Cd / usr/local/ln-sv apache-tomcat-8.5.5 tomcat
Configure environment variables
Vim / etc/profile.d/tomcat.sh
Catalina_base=/usr/local/tomcatpath=$catalina_base/bin:$pathexport path catalina_base
Let the configuration take effect
Source / etc/profile.d/tomcat.sh
View tomcat version status
Go to the bin directory of tomcat
Cd / usr/local/tomcat/bin/
Give authority
Chmod 755 *
View configuration information
. / catalina.sh version
Start the tomcat service
. / startup.sh
If the above content appears, it means it is successful. Now visit ip:8080 to have a look.
These are all the contents of the article "how to deploy and install the Java+Tomcat Environment". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.