저는 Tomcat 8.0.49를 실행 중이고 SSL 커넥터가 설정되어 있습니다. 다음은 다른 Tomcat 인스턴스(버전 7.x)에서 작동하는 커넥터입니다. 웹 브라우저를 통해 인스턴스에 연결하면 SSL 커넥터가 제대로 시작되지 않아서 중단되는 것 같습니다. 이는 제가 이미 설치한 APR 라이브러리를 찾을 수 없기 때문인 것 같습니다. 어떤 아이디어가 있나요? 아래를 참조하세요.
이것이 내가 catalina.out에서 얻은 것입니다:
02-Oct-2020 13:53:52.357 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
다음 RPM을 설치하더라도(apr 및 apr-devel만 필요한 것 같습니다):
$ sudo rpm -qa apr openssl-devel apr-util apr-devel apr
openssl-devel-1.0.2k-19.el7.x86_64
apr-util-1.5.2-6.el7.x86_64
apr-1.4.8-5.el7.x86_64
apr-devel-1.4.8-5.el7.x86_64
제가 4월에 본 내용은 다음과 같습니다.
$ sudo find / -name '*apr*'
..
/usr/bin/apr-1-config
..
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/lib/amd64/libsaproc.so
/usr/lib64/apr-1
/usr/lib64/apr-1/build/apr_rules.mk
/usr/lib64/pkgconfig/apr-1.pc
/usr/lib64/libapr-1.so
/usr/lib64/libaprutil-1.so.0
/usr/lib64/libaprutil-1.so.0.5.2
/usr/lib64/libapr-1.la
/usr/lib64/libapr-1.so.0
/usr/lib64/libapr-1.so.0.4.8
/usr/lib64/apr-util-1
이것은 server.xml의 커넥터입니다.
<Connector SSLCertificateFile="path-of-mycertfile-here.crt" SSLCertificateKeyFile="path-of-my-keyfile-here.key" SSLCipherSuite="HIGH:MEDIUM:!RC4:!DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:ECDH-RSA-AES256-SHA:!ADH-DES-CBC3-SHA:!3DES:!aNULL:!eNULL" SSLEnabled="true" SSLProtocol="TLSv1.2" URIEncoding="UTF-8" clientAuth="false" maxThreads="150" port="9443" protocol="org.apache.coyote.http11.Http11AprProtocol" scheme="https" secure="true"/>
catalina.out의 환경 정보는 다음과 같습니다.
02-Oct-2020 13:53:52.349 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat
02-Oct-2020 13:53:52.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jan 19 2018 20:21:23 UTC
02-Oct-2020 13:53:52.353 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.x
02-Oct-2020 13:53:52.353 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
02-Oct-2020 13:53:52.353 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1127.13.1.el7.x86_64
02-Oct-2020 13:53:52.353 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
02-Oct-2020 13:53:52.353 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre
02-Oct-2020 13:53:52.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_262-b10
02-Oct-2020 13:53:52.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
02-Oct-2020 13:53:52.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /opt/apache-tomcat-8.0.49
02-Oct-2020 13:53:52.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /opt/apache-tomcat-8.0.49