标签:exp 环境变量 tom lin c51 pac tps mirrors 服务
axel https://mirrors.aliyun.com/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz
axel http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1531539959_12517e81547e230361990d0e4a7eb030
tar xf jdk-8u171-linux-x64.tar.gz
mv jdk1.8.0_171 /application/
ln -s /application/jdk1.8.0_171/ /application/jdk
tar xf apache-tomcat-8.5.32.tar.gz
mv apache-tomcat-8.5.32 /application/
ln -s /application/apache-tomcat-8.5.32 /application/tomcat
vim /etc/bashrc
export JAVA_HOME=/application/jdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
export TOMCAT_HOME=/application/tomcat
source /etc/bashrc
echo ‘export TOMCAT_HOME=/application/tomcat‘ >>/etc/bashrc
source /etc/bashrc
useradd tomcat
chown -R tomcat.tomcat /application/tomcat/
su - tomcat -c ‘/application/tomcat/bin/startup.sh’
打开网址输入你主机ip:8080 看能否打开tomcat的主界面
标签:exp 环境变量 tom lin c51 pac tps mirrors 服务
原文地址:https://www.cnblogs.com/xiaoyaoren/p/9312922.html