当前位置:网站首页>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
边栏推荐
- 只有一台交换机,如何实现主从自动切换之nqa
- pytorch余弦退火学习率CosineAnnealingLR的使用
- 无题十四
- ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
- 新白娘子传奇系列
- leetcode refers to Offer 10- II. Frog jumping steps
- 【零基础玩转BLDC系列】无刷直流电机无位置传感器三段式启动法详细介绍及代码分享
- Custom filters and interceptors implement ThreadLocal thread closure
- leetcode: 529. 扫雷游戏
- PAT乙级-B1019 数字黑洞(20)
猜你喜欢
随机推荐
无题十二
无题二
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
轩辕实验室丨欧盟EVITA项目预研 第一章(四)
上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
After Keil upgrades to AC6, what changes?
为什么我推荐使用智能化async?
Creo 9.0 基准特征:基准点
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
XCODE12 在使用模拟器(SIMULATOR)时编译错误的解决方法
Keil升级到AC6后,到底有哪些变化?
2022/8/4 考试总结
歌词整理
无题六
MySQL使用聚合函数可以不搭配GROUP BY分组吗?
mysql进阶(二十七)数据库索引原理
在colab里怎样读取google drive数据
Tanabata romantic date without overtime, RPA robot helps you get the job done
【零基础玩转BLDC系列】无刷直流电机无位置传感器三段式启动法详细介绍及代码分享