org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available
1、查看是否已经安装了apr和apr-utilrpm -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-utilyum 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://www.jianshu.com/p/1caf8dc48149
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。