当前位置:网站首页>5. Deploy the web project to the cloud server
5. Deploy the web project to the cloud server
2022-08-05 09:32:00 【Learn Java zhang SAN】
1. Deploy the web project to the cloud server
Add a security rule on the cloud server first
1. First open the cloud server and connect with XShell 
2. Use Xfpt to drag the tomcat archive to root
unzip apache-tomcat-8.5.60.zip![]()
3. Enter the apache-tomcat-8.5.60/bin/ directory and start startup.sh

sh startup.shIf you have permission issues chmod a+x *.sh
4. Check the process and port number
h2>Check progressps aux | grep tomcatcheck portnetstat -nlpt | grep 8080
5. Install mariadb
Install via yumyum install mariadb-server --allowerasing6. Start mariadb
Startsystemctl start mariadb7. Check the process and port number
Check progressps aux | grep mysqlcheck portnetstat -nlpt | grep 3306
8. Modify MySQL login password
mysql_secure_installationIf this is the first time
Enter the password when prompted for the first time, and then set the password
If it has been installed before, you need to enter your own password
9. Connect Mysql
mysql -uroot -p
10. Paste the database table and database creation statements into the terminal, enter show databases after pressing Enter; check whether the current database has been inserted
After the database insertion is complete,
use database name;
show tables; check whether the table in the database is inserted or not
11. Stop Tomcat, enter the apache-tomcat-8.5.60/bin/ directory, and start startdown.sh
sh shutdown.sh12. Enter the apache-tomcat-8.5.60/webapps directory
If there are unnecessary files, delete them directly rm -rf file name
13.Windows maven clean + compile + package for packaging target/xxx.war -> target/ROOT.war

14. Copy the packaged war package to the apache-tomcat-8.5.60/webapps directory using Xftp
15. Enter the apache-tomcat-8.5.60/bin/ directory and start startup.sh. After the startup is complete, enter http://public network address:8080 in the browser to access the web project
边栏推荐
- 并发之CAS
- Keil升级到AC6后,到底有哪些变化?
- MQTT X Newsletter 2022-07 | 自动更新、MQTT X CLI 支持 MQTT 5.0、新增 conn 命令…
- 基于 Kubernetes 的微服务项目整体设计与实现
- ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...
- js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
- 放大器OPA855的噪声计算实例
- 无题十一
- Custom filters and interceptors implement ThreadLocal thread closure
- seata源码解析:TM RM 客户端的初始化过程
猜你喜欢

Xcode10的打包方式distribute app和启动项目报错以及Xcode 打包本地ipa包安装到手机上

只有一台交换机,如何实现主从自动切换之nqa

What is CRM Decision Analysis Management?

链表中的数字相加----链表专题

Weekly Report 2022-8-4

七夕浪漫约会不加班,RPA机器人帮你搞定工作

egg框架使用(一)

express hot-reload

pytorch余弦退火学习率CosineAnnealingLR的使用

Tanabata romantic date without overtime, RPA robot helps you get the job done
随机推荐
营销建议 | 您有一份八月营销月历待查收! 建议收藏 !
mysql进阶(二十七)数据库索引原理
express hot-reload
我的杂记链接
仿SBUS与串口数据固定转换
leetcode refers to Offer 10- II. Frog jumping steps
CCVR eases heterogeneous federated learning based on classifier calibration
dotnet OpenXML 解析 PPT 图表 面积图入门
汇编语言(8)x86内联汇编
只有一台交换机,如何实现主从自动切换之nqa
无题八
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
MQTT X Newsletter 2022-07 | 自动更新、MQTT X CLI 支持 MQTT 5.0、新增 conn 命令…
Redis源码解析:Redis Cluster
正则表达式replaceFirst()方法具有什么功能呢?
Why do I recommend using smart async?
The Seven Weapons of Programmers
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
leetcode: 529. Minesweeper Game

