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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure Tomcat to access https". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to configure Tomcat to access https".
In the command prompt window, go to the Tomcat directory and execute the following command:
Keytool-genkey-alias tomcat-keyalg RSA-keypass changeit-storepass changeit-keystore server.keystore-validity 3600
Keytool-genkey-alias tomcat-keyalg RSA-keypass changeit-storepass changeit-keystore server.keystore-validity 3600
Generate the server.keystore certificate file through the above steps,
Open the comment under servlet.xml (it is best to copy this paragraph)
Visit https;//ip:8443/item at this stage
Generally speaking, the default SSL port number of Tomcat is 8443, but for SSL, the standard port number is 443.When you visit a web page, you can directly use https without entering a port number, such as http://www.chinaitlab.com
To change the port number, you need to modify the server.xml file of Tomcat:
The places defined by 1.non-SSL HTTP/1.1 Connector are generally as follows:
Change the redirectPort port number to: 443
In the place defined by 2.SSL HTTP/1.1 Connector, modify the port number to: 443, as follows:
3.AJP 1.3Definitions of Connector, modify the redirectPort to 443, as follows:
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.