centos httpd服务 报错: Unregistered Authentication Agent for unix-process
yum install httpd httpd-devel
安装一切正常,启动服务:
systemctl enable httpd
systemctl start httpd.service
现错误信息,服务不能正常启动,检查错误信息:
systemctl status httpd.service
错误信息不是很明确,查/var/log/httpd/error_log
提示certification:
Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4.
编辑/etc/httpd/conf.d/nss.conf,增加一行:
NSSEnforceValidCerts off
保存重启httpd服务:
systemctl start httpd.service
检查httpd服务状态:
systemctl status httpd.service
显示服务正常,问题解决。