In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to deploy tomcat project in Linux". In daily operation, I believe many people have doubts about how to deploy tomcat project in Linux. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to deploy tomcat project in Linux"! Next, please follow the small series to learn together!
1. Download the corresponding Tomcat server package
Apache Tomcat official website download: www.example.com
Upload to Linux server and extract
After successful upload, use tar-xzvf apache-tomcat-7.0.82.tar.gz command to decompress
drwxr-xr-x 9 root root 4096 Nov 15 16:37 apache-tomcat-7.0.82 -rw-r–r– 1 root root 8997403 Nov 15 16:25 apache-tomcat-7.0.82.tar.gz
3. Upload war project package
After decompression, enter Tomcat webapps directory and upload the corresponding war project package
[root@iZj6cgy98yqy7fow7dq2lnZ tomcat]#cd apache-tomcat-7.0.82/webapps/[root@iZj6cgy98yqy7fow7dq2lnZ webapps]#ll total 17116 drwxr-xr-x 14 root root 4096 Nov 15 16:37 docs drwxr-xr-x 7 root root 4096 Nov 15 16:37 examples drwxr-xr-x 5 root root 4096 Nov 15 16:37 host-manager drwxr-xr-x 5 root root 4096 Nov 15 16:37 manager drwxr-xr-x 3 root root 4096 Nov 15 16:37 ROOT drwxr-xr-x 5 root root 4096 Nov 15 17:00 yun-video-rw-r--r--1 root root 17498127 Nov 15 16: 57 yun-video. war [root@iZj6cgy98yqy7fow7dq2lnZ webapps]#4. Modify Tomcat related server configuration files
[root@iZj6cgy98yqy7fow7dq2lnZ webapps]# vim ../ conf/server.xml Modify Tomcat boot port (default 8080):
The port here can be modified to another service port, that is, Tomcat's boot port.
Modify Tomcat root project startup
Add this line under Configuration Directory
Configuration Details:
Added configuration:
- -> 5. Start Tomcat
The script is in the bin directory.
[root@iZj6cgy98yqy7fow7dq2lnZ bin]# sh startup.sh
Stop Tomcat
[root@iZj6cgy98yqy7fow7dq2lnZ bin]# sh shutdown.sh
At this point, the study of "how to deploy tomcat project in Linux" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.