Tomcat 8 용 RedHat 환경에서 JAVA_OPTS를 설정하는 데 어려움이 있습니다. Tomcat 설치 디렉토리 외부에서 등록 정보를로드해야합니다. 폴더 구조 :RedHat 용 JAVA_OPTS
----/home/tomcat -----/apache-tomcat-8 -----/remoteProperties
나는 원격 속성 폴더에서 등록 정보를로드 할. I 자마자
FileNotFoundExcetpion /home/tomcat/apache-tomcat-8.0.41/bin/home/tomcat/remoteProperties/collections/properties/logging/logback.xml
을 :이 경로가 제대로 설정되지 않은 것 같습니다 내 war 파일을 배포 한 후
JAVA_OPTS="$JAVA_OPTS -DPropertyPath=/home/tomcat/remoteProperties/collections"
: 여기
는setenv.sh
파일 내용입니다
setenv.sh
의 내용을 변경하고 절대 경로 대신 상대 경로를 사용하십시오 :
JAVA_OPTS="$JAVA_OPTS -DPropertyPath=../../remoteProperties/collections"
예상대로 작동합니다. JAVA_OPTS에서 절대 경로를 설정할 수 있습니까? 고맙습니다!