In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to install tomcat on Cloud Virtual Machine. Many people may not know much about it. In order to let you know more, Xiaobian summarizes the following contents for you. I hope you can gain something according to this article.
How to install tomcat on Cloud Virtual Machine?
After connecting to the Cloud Virtual Machine remotely, Java support is required to build tomcat, so jdk needs to be downloaded. After jdk is downloaded, it is uploaded and decompressed. Create a directory called java to store jdk and tomcat.
1. Upload the downloaded jdk package to java/folder with xftp. At this time, we cd to the directory where the jdk package is located (cd /usr/java), and execute the command here.
tar-xvf jdk-x.x.x_xxx-linux-x64.tar.gz
2. After decompression, you can use the command ll to check whether decompression is successful. Next, to configure the environment variables, enter vim /etc/profile.
If you don't have vim, you can use vi. At the end, add the following command
JAVA_HOME=/usr/java/jdkx.x.x_xxxCLASSPATH=$JAVA_HOME/lib/PATH=$PATH:$JAVA_HOME/binexport JRE_HOME=/usr/java/jdkx.x.x_xxx/jreexport PATH JAVA_HOME_ CLASSPATH
3. Save and exit after typing, then update the profile by executing the following command
source /etc/profile
4. After completion, you can enter the following command to verify whether java installation is successful java -version
5. tomcat download is complete, also use xftp file upload to java folder,
Then execute the command tar -xvf apache-tomcat-xxxx.tar.gz here
After extracting, cd to the bin folder of the extracted tomcat folder, edit setclasspath.sh:
vi setclasspath.sh
Add the following command at the end:
export JAVA_HOME=/usr/java/jdkxxxxexport JRE_HOME=/usr/java/jdkxxxx/jre
After saving and exiting, start tomcat: ./ startup.sh
After reading the above, do you have any further understanding of how to install tomcat on Cloud Virtual Machine? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
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.