首先安装Apache,查看系统是否安装httpd和apr、apr-util并卸载
#rpm -qa|grep apr
apr-util-1.5.2-6.el7.x86_64
apr-1.4.8-3.el7.x86_64
#rpm -e --nodeps --allmatches apr-util-1.5.2-6.el7
#rpm -e --nodeps --allmatches apr-1.4.8-3.el7
#rpm -qa httpd
httpd-2.4.6-31.el7.centos.x86_64
# rpm -e --nodeps --allmatches httpd-2.4.6-31.el7.centos
重新安装httpd和apr、apr-util
#yum install httpd apr apr-util
Apache扩展模块
#rpm -qa|grep apr
apr-util-1.5.2-6.el7.x86_64
apr-1.4.8-3.el7.x86_64
#rpm -e --nodeps --allmatches apr-util-1.5.2-6.el7
#rpm -e --nodeps --allmatches apr-1.4.8-3.el7
#rpm -qa httpd
httpd-2.4.6-31.el7.centos.x86_64
# rpm -e --nodeps --allmatches httpd-2.4.6-31.el7.centos
重新安装httpd和apr、apr-util
#yum install httpd apr apr-util
Apache扩展模块
#yum install httpd-manual mod_ssl mod_perl mod_auth_mysql
/设置为自动启动
# systemctl enable httpd.service