首页

启动tomcat时日志报“Error:password file not found:../conf/jmxremote.password ”异常导致无法正常启动使用

标签:tomcat,Error,jmxremote.password ”     发布时间:2018-06-29   

一、前言

关于启动tomcat的时报“Error:password  file  not  found:../conf/jmxremote.password ”异常日志,详情参见如下图说明

启动tomcat时日志报“Error:password  file  not  found:../conf/jmxremote.password ”异常导致无法正常启动使用

二、解决方法

1.打开bin/catalina.sh文件,如下

..@b@CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 @b@-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true @b@ -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"@b@@b@JAVA_OPTS="-Djava.awt.headless=true -server -Xms1024m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError @b@-verbose:gc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps -Xloggc:/home/tomcat/logs/gc-$$.log"@b@@b@...

2.注释掉CATALINA_OPTS一行,重启问题解决了

...@b@@b@#CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 @b@-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true @b@ -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access"@b@@b@JAVA_OPTS="-Djava.awt.headless=true -server -Xms1024m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError @b@-verbose:gc -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps -Xloggc:/home/tomcat/logs/gc-$$.log"@b@@b@...
<<热门下载>>