1.安装jdk
#mkdir -p /usr/java
#tar 压缩包 -C /usr/java
#配置环境变量
#vim /etc/profile.d/java.sh
JAVA_HOME=/usr/local/java
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH
#测试
#source /etc/profile.d/
#java.sh java -version
2.安装tomcat
----安装tomcat-------
#tar xvf tomcat压缩包 -C /usr/local
#ln -s /usr/解压后文件夹 /usr/local/tomcat
----配置环境变量-------
#echo 'export TOMCAT_HOME=/usr/local/tomcat'>>/etc/profile.d/tomcat.sh
#source /etc/profile.d/tomcat.sh
-----检查tomcat是否安装成功
/usr/local/tomcat/bin/version.sh
-----启动或关闭tomcat
# 启动程序/usr/local/tomcat/bin/startup.sh
# 关闭程序/usr/local/tomcat/bin/shutdown.sh
3.下载jpress程序,并安装mariadb