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 > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, what the editor shares with you is the introduction of the operation steps of the CVM publishing website. Many people don't know much about it. Today, in order to make you understand better, the editor summarizes the following contents. Let's take a look at it. I'm sure you'll get something.
After having a CVM, if you want to publish a website, you need to register the domain name and put it for the record (not used by Hong Kong, Macao, Taiwan or overseas CVM), and then remotely connect to the server configuration environment.
There are three ways to deploy the java web project: java image deployment, one-click installation package deployment and manual deployment. The first two are simple and fast, but you usually have to pay for them. Manual free, need to have a certain degree of operation ability. Below we introduce the configuration method to install JDK and Tomcat. After installation, you need to set up the environment.
Set the JDK environment variable
1. First configure the environment variables of jdk
Vim / etc/profile# my seting# set jdkexport JAVA_HOME=/usr/java/jdk1.8.0_181export JRE_HOME=/usr/java/jdk1.8.0_181/jreexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JRE_HOME/lib/tools.jar:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
two。 Save Settin
Terminal input: source / etc/profile
3. Inspection
Terminal input: java-version
It is normal for the following styles to appear, and the version of your own shall prevail.
Java version "1.8.0mm 181" Java (TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot (TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Configure the environment variables for Tomcat
1. Configure the setclasspath.sh file
Enter the bin file of tomcat
/ usr/tomcat/apache-tomcat-9.0.12/bin
Edit the setclasspath.sh file
Vim setclasspath.sh
Add the following code
Export JAVA_HOME=/usr/java/jdk1.8.0_181export JRE_HOME=/usr/java/jdk1.8.0_181/jre
Save exit
two。 Start Tomcat
. / startup.sh
Started successfully
Using CATALINA_BASE: / usr/tomcat/apache-tomcat-9.0.12Using CATALINA_HOME: / usr/tomcat/apache-tomcat-9.0.12Using CATALINA_TMPDIR: / usr/tomcat/apache-tomcat-9.0.12/tempUsing JRE_HOME: / usr/java/jdk1.8.0_181/jreUsing CLASSPATH: / usr/tomcat/apache-tomcat-9.0.12/bin/bootstrap.jar:/usr/tomcat/apache-tomcat- 9.0.12/bin/tomcat-juli.jarTomcat started.
Shut down the service. / shutdown.sh
3. External network test
In the browser address bar of your local computer, enter: http://ip:8080/ ip as your public network ip
Deploy the web project
Upload the project or copy it to Tomcat's webapps via git. Then, you can enter http:// CVM IP:8080/index.html in the browser address bar to access the website. Resolve the domain name that you have put on record. After parsing, it can be accessed through the website.
The above is a brief introduction to the operation steps of the CVM publishing website. Of course, the differences in the detailed use of the above still need to be understood by everyone. If you want to know more, welcome to follow the industry information channel!
As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing cloud servers for Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, easy to use, high service availability, high performance-to-price ratio" and are designed to be customized for enterprises to meet the needs of rich and diversified application scenarios.
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.