一.jdk的安装
先把需要用到的文件拖到opt文件夹中

在/usr/local中建立一个以Java命名的文件夹然后把jdk解压到这个文件夹中
输入命令vi /etc/profile进入编写

把命令编写到编辑器后输入source /etc/profile 然后查看jdk是否安装成功即可
二.tomcat的安装(开机自启动)
输入命令把Tomcat安装到java文件夹中

输入以下命令 把文件名称改为tomcat

编辑tomcat
JAVA_HOME=/usr/local/java/jdk1.8.0_151
CATALINA_HOME=/use/local/apache-tomcat-8.5.20
加入以下注释,意思是表示自开启的优先级
#chkconfig:23456 10 90
#description:tomcat service
使用该命令添加服务

三.Mysql的安装(开机自启动)
找到该文件

把找到的文件删除

创建并解压MySQL

开始安装,-ivh 其中i表示安装,v表示显示安装过程,h表示显示进度
cd mysql-5.7
rpm -ivh mysql-community-common-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.35-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.35-1.el7.x86_64.rpm

启动服务
开机自启动

查看密码


四.连接项目
