Linux版 Tomcat 9 启动时提示The APR was not found
提示: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 解决方法: Debian 10命令:apt install libapr1-dev libssl-dev gcc make
CentOS 8命令:yum install apr-devel openssl-devel gcc make
cd到tomcat9目录/bin
tar -zxvf tomcat-native.tar.gz
cd到tomcat9目录/bin/tomcat-native-1.2.23-src/native
./configure && make && make install 创建文件setenv.sh保存到tomcat9目录/bin,文件内容如下: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib export LD_LIBRARY_PATH
PreviousCentOS 8 安装MySQL 8NextTomcat启动时提示【At least one JAR was scanned for TLDs yet contained no TLDs】
Last updated