In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to configure java environment on centos7.5 and install tomcat". In daily operation, I believe many people have doubts about how to configure java environment and install tomcat on centos7.5. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "how to configure java environment on centos7.5 and install tomcat". Next, please follow the editor to study!
1. Install the java environment:
Visit the orcal official website to download the jdk rpm package:
After the download is completed, execute: rpm-ivh jdk-8u161-linux-x64.rpm to install. By default, it will be installed in / usr/java directory.
After the installation is complete, modify the / etc/profile file to add the java environment variable:
Export java_home=/usr/java/jdk1.8.0_161/export classpath=.:$java_home/jre/lib/rt.jar:$java_home/lib/dt.jar:$java_home/lib/tools.jarexport path=$path:$java_home/bin
Execute after adding: source / etc/profile to make the configuration effective
Execution: java-version verifies whether the configuration is successful. The following interface indicates that the configuration is successful.
two。 Install tomcat
Visit the apache official website and download the tomcat source code package:
Be sure to choose the source package in binary distributions when downloading
After downloading, extract and copy the contents of the extracted directory to / usr/local/tomcat (/ usr/local/tomcat directory needs to be created manually)
Tar-xf apache-tomcat-8.5.38.tar.gzmkdir / usr/local/tomcat8mv apache-tomcat-8.5.38/* / usr/local/tomcat8/cd / usr/local/tomcat8/bin./startup.sh
Now that tomcat has been successfully installed, visit and test:
At this point, the study on "how to configure the java environment on centos7.5 and install tomcat" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.