In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to install jdk and Tomcat in liunx environment, which is very detailed and has certain reference value. Friends who are interested must finish it!
First, install jdk
Note: you need to configure jdk first to install tomcat
One is yum installation.
One is manual installation (personally recommended)
Manual installation
1. Go to the Oracle official website to download the jdk version that needs to be installed. I use jdk-8u171-linux-x64.tar.gz here.
two。 Put the compressed package in the / usr/local/jdk directory. The jdk directory needs to be created manually, or you can call it java. You can choose your own name (see name), and then extract the compressed package.
Enter the following instruction: tar zxvf jdk-8u172-linux-x64.tar.gz
After the decompression is successful
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_172export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/export PATH=$PATH:$JAVA_HOME/bin
To see if jdk is installed successfully, enter the instruction java-version.
II. Tomcat
Install using yum
Yum install tomcat
View Tomcat status
Systemctl status tomcat
Start Tomcat
Systemctl start tomcat.service
Install the Tomcat page plug-in
Yum install tomcat-webapps tomcat-admin-webapps
Increase the port number
Firewall-cmd-zone=public-add-port=8080/tcp-permanent
Firewalls
Systemctl restart firewalld
It would be nice to have an interface like this.
These are all the contents of the article "how to install jdk and Tomcat in liunx". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow 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.