In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to deploy jdk and tomcat on an interface-less centos7. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
1. Install xshell6
two。 Create a server connection and enter a user name and password
3.
4.
5. Enter wget-- no-check-certificate-- no-cookies-- header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz to download the jdk1.8 package to the current folder using wget
6. Enter tar-zxvf jdk-8u201-linux-x64.tar.gz to decompress
7. Press I to edit the profile file after entering vim / etc/profile
8. Move the cursor to append to the end of the profile file
The folder name after export JAVA_HOME=/usr/local/ decompression is export JRE_HOME=$ {JAVA_HOME} / jreexport CLASSPATH=.:$ {JAVA_HOME} / lib:$ {JRE_HOME} / lib:$CLASSPATHexport JAVA_PATH=$ {JAVA_HOME} / bin:$ {JRE_HOME} / binexport PATH=$PATH:$ {JAVA_PATH}
9. Press Esc first, then press shift+zz to exit vim editing
10. Enter java-version to test whether java is installed successfully
11. Enter cd / usr/local to re-enter the local folder
twelve。 Enter wget https://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.5.41/bin/apache-tomcat-8.5.41.tar.gz to download the tomcat8.5 package to the current folder
13. Type tar-zxvf apache-tomcat-8.5.41.tar.gz to extract to the current folder
14. Enter cd apache-tomcat-8.5.41/bin to enter the bin folder
15. Enter ls to view all files and directories under bin
16.
17. Select lightweight Application Server from products and Services in Ali console (left menu)
18. Such a picture
19. Add rules to the firewall in the details
20. After setting up, enter ip:8080 of Ali Public Network into the browser to display the tomcat welcome page.
21. Upload the javaweb program developed on windows to the server through xshell. First check whether lrzsz has been installed, enter rpm-qa lrzsz in the session, if it does not exist, first install lrzsz, enter yum-y install lrzsz to install lrzsz, and then enter rpm-qa lrzsz to check whether the installation is successful.
twenty-two。 If the installation is successful, enter cd / usr/local/apache-tomcat-8.5.41/webapps to enter the webapps directory
23. Enter rz-y to pop up the local window, select the packaged war file or the project file packaged into tar, and wait for upload after confirmation. After the upload is completed, the file will be located in the webapps directory.
24. If you are uploading a tar file, you need to enter the name of the compressed tar-xvf file to extract it.
25. Enter the ip:8080/ project name / access project in the browser
This is the end of this article on "how to deploy jdk and tomcat on an interface-less centos7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.