当前位置:网站首页>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
边栏推荐
- Xcode10的打包方式distribute app和启动项目报错以及Xcode 打包本地ipa包安装到手机上
- 【zeno】为zeno增加子模块/新节点的最小化的例子
- HStreamDB Newsletter 2022-07|分区模型优化、数据集成框架进一步完善
- Excuse me, guys, is it impossible to synchronize two databases in real time using Flink SQL CDC?
- PAT乙级-B1021 个位数统计(15)
- The Seven Weapons of Programmers
- 使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
- ffmpeg drawtext add text watermark
- ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...
- egg框架使用(一)
猜你喜欢
【ASM】字节码操作 方法的初始化 Frame
深度学习21天——卷积神经网络(CNN):天气识别(第5天)
Why do I recommend using smart async?
茄子科技CEO仇俊:以用户为中心,做用户真正需要的产品
How to realize the short press and long press detection of the button?
手把手教你纯c实现异常捕获try-catch组件
Custom filters and interceptors implement ThreadLocal thread closure
如何实现按键的短按、长按检测?
并发之CAS
什么是CRM决策分析管理?
随机推荐
为什么我推荐使用智能化async?
Advanced usage of C language
seata源码解析:事务状态及全局锁的存储
2022.8.3
只有一台交换机,如何实现主从自动切换之nqa
PAT Level B - B1021 Single Digit Statistics (15)
Oracle临时表空间作用
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g
Is there a problem with writing this?How to synchronize data in sql-client
Redis源码解析:Redis Cluster
After Keil upgrades to AC6, what changes?
使用 External Secrets Operator 安全管理 Kubernetes Secrets
my journal link
无题三
Example of Noise Calculation for Amplifier OPA855
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...
There is only one switch, how to realize the nqa of master-slave automatic switching
PAT Class B-B1019 Digital Black Hole (20)