tomcat启动报错org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http...

org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available

1、查看是否已经安装了apr和apr-util
rpm -qa apr
apr-1.4.8-3.el7.x86_64

rpm -qa apr-util
apr-util-1.5.2-6.el7.x86_64

2、查看是否有最新版的apr和apr-util
yum list | grep apr
apr.x86_64 1.4.8-3.el7 @anaconda
apr-util.x86_64 1.5.2-6.el7 @anaconda

3、如果还没安装,用yum安装:
yum install apr-devel apr apr-util

4、安装tomcat-native:
搜索tomcat-native安装包:
yum list | grep tomcat-native

如果已经存在,直接安装:
yum install tomcat-native
……
正在安装 : tomcat-native-1.1.30-1.el7.x86_64 1/1
验证中 : tomcat-native-1.1.30-1.el7.x86_64 1/1

已安装:
tomcat-native.x86_64 0:1.1.30-1.el7
完毕!

查看是否安装成功:
rpm -qa tomcat-native
tomcat-native-1.1.30-1.el7.x86_64

参考:
https://blog.csdn.net/felix_yujing/article/details/52385890
https://blog.csdn.net/ClementAD/article/details/47320037

你可能感兴趣的:(tomcat启动报错org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http...)