当前位置:网站首页>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
边栏推荐
- egg框架使用(二)
- C语言-数组
- Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
- 无题八
- Seata source code analysis: initialization process of TM RM client
- 【Excel实战】--图表联动demo_001
- Two-table query average grouping in sql server
- 使用 External Secrets Operator 安全管理 Kubernetes Secrets
- 19.服务器端会话技术Session
- 如何实现按键的短按、长按检测?
猜你喜欢

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

哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?

上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》

Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)

Seata source code analysis: initialization process of TM RM client

交换机端口的三种类型详解与hybrid端口实验

Keil升级到AC6后,到底有哪些变化?

MySQL内部函数介绍

ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...

15.1.1、md—md的基础语法,快速的写文本备忘录
随机推荐
无题六
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
MySQL内部函数介绍
egg框架使用(一)
leetcode: 529. Minesweeper Game
IDEA执行Test操作导致数据插入时出现了重复数据
Advanced usage of C language
express hot-reload
请问大佬们 ,使用 Flink SQL CDC 是不是做不到两个数据库的实时同步啊
正则表达式replaceAll()方法具有什么功能呢?
无题四
【LeetCode】623. Add a row to the binary tree
Weekly Report 2022-8-4
mysql进阶(二十七)数据库索引原理
无题十四
手把手教你纯c实现异常捕获try-catch组件
shell脚本实例
dotnet OpenXML 解析 PPT 图表 面积图入门
Voice conversion相关语音数据集综合汇总
Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g

