linux下安装tomcat配置环境变量

时间:2021-12-07 19:14:29

linux下安装tomcat,一定记得配置环境变量,在tomcat的bin目录通过vi命令打开catalina.sh,在catalina.sh中加入如下配置:


export TOMCAT_HOME=/usr/local/apache-tomcat-9.0.0.M26
export CATALINA_HOME=/usr/local/apache-tomcat-9.0.0.M26
export JRE_HOME=/usr/lib/jvm/jdk1.8.0_131/jre
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_131