当前位置:网站首页>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.sh
If 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 --allowerasing
6. Start mariadb
Startsystemctl start mariadb
7. Check the process and port number
Check progressps aux | grep mysqlcheck portnetstat -nlpt | grep 3306
8. Modify MySQL login password
mysql_secure_installation
If 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.sh
12. 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
边栏推荐
- 科普大佬说 | 港大黄凯斌老师带你解锁黑客帝国与6G的关系
- 七夕浪漫约会不加班,RPA机器人帮你搞定工作
- Does flink cdc support synchronization from oracle dg library?
- 新白娘子传奇系列
- Assembly language (8) x86 inline assembly
- 无题十
- 偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
- ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
- 无题七
- 正则表达式replaceFirst()方法具有什么功能呢?
猜你喜欢
How to realize the short press and long press detection of the button?
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)
Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)
【zeno】为zeno增加子模块/新节点的最小化的例子
egg框架使用(一)
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
放大器OPA855的噪声计算实例
After Keil upgrades to AC6, what changes?
随机推荐
阿里云存储的数据库是怎么自动加快加载速度的呢www.cxsdkt.cn怎么设置案例?
请问大佬们 ,使用 Flink SQL CDC 是不是做不到两个数据库的实时同步啊
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
营销建议 | 您有一份八月营销月历待查收! 建议收藏 !
Voice conversion相关语音数据集综合汇总
链表中的数字相加----链表专题
ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
Is there a problem with writing this?How to synchronize data in sql-client
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
无题四
手把手教你纯c实现异常捕获try-catch组件
无题六
shell脚本实例
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g
无题八
无题三
leetcode refers to Offer 10- II. Frog jumping steps
CPU的亲缘性affinity