java,tomcat环境变量与web认证

java环境变量:

JAVA_HOME=/usr/local/java
JAVA_BIN=$JAVA_HOME/bin 
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=$JRE_HOME/lib:$JAVA_HOME/lib:$JRE_HOME/lib/charsets.jar
export JAVA_HOME JAVA_BIN JRE_HOME PATH CLASSPATH

Tomcat环境变量:

PATH=/usr/local/tomcat/bin:$PATH
CATALINA_HOME=/usr/local/tomcat
CATALINA_BASE=/usr/local/tomcat
CATALINA_TMPDIR=/usr/local/tomcat/temp
export PATH CATALINA_HOME CATALINA_BASE CATALINA_TMPDIR

web认证登录:
tomcat7:

$CATALINA_BASE/conf/tomcat-users.xml
  
  

tomcat8:

除了上面的配置外,还需要配置:
$CATALINA_BASE/conf/Catalina/localhost/manager.xml

  

你可能感兴趣的:(java,tomcat环境变量与web认证)