本文共 648 字,大约阅读时间需要 2 分钟。
1. sudo mkdir -p ~/webserver/ 2. sudo tar -zxvf ./download/apache-tomcat-7.0.37.tar.gz -C ~/webserver/ 3. sudo gedit /etc/environment add: CATALINA_BASE=/home/ht/webserver/apache-tomcat-7.0.37 CATALINA_HOME=/home/ht/webserver/apache-tomcat-7.0.374. sudo gedit /etc/profile
add below at the end of file:export CATALINA_BASE=/home/ht/webserver/apache-tomcat-7.0.37
export CATALINA_HOME=/home/ht/webserver/apache-tomcat-7.0.37 export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JRE_HOME/lib:$CATALINA_HOME export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$CATALINA_HOME/bin 5 . . /etc/environment 6. sudo chmod -R 777 ~/webserver/apache-tomcat-7.0.37/转载地址:http://zrbvi.baihongyu.com/