一.搭建Linux运行环境
需要部署Java程序到服务器上,这样程序才能被外面的用户访问到
1.安装jdk
yum install develop x86_64
2.安装tomcat
1)下载好,通过xshell直接拖到服务器上,依赖了rz命令
2)解压缩unzip命令
3)使.sh都有可执行权限
chmod +x *.sh
4)启动 sh startup.sh
5) 验证 ①ps aux|grep tomcat ② netstat -anp |grep 8080 ③浏览器欢迎页面
3.安装MySQL
自己用的电脑和Linux服务器.是两台机器

https://zhuanlan.zhihu.com/p/49046496
我们基于yum进行简单配置
安装MariaDB 和MySQL是类似的
可以替代,因为操作和API是兼容的
3.1 安装

3.2更改配置




3.3测试连接


3.4保证安全

