当前位置: 代码迷 >> 综合 >> apache假死 日志出现错误“Init: Session Cache is not configured [hint: SSLSessionCache]“的解决方法
  详细解决方案

apache假死 日志出现错误“Init: Session Cache is not configured [hint: SSLSessionCache]“的解决方法

热度:49   发布时间:2023-11-08 21:28:42.0

出现如下错误

[mpm_event:notice]  AH00493: SIGUSR1 received.  Doing graceful restart
[ssl:warn] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[lbmethod_heartbeat:notice]  AH02282: No slotmem from mod_heartmonitor
[mpm_event:notice] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations
[core:notice]AH00094: Command line: '/www/server/apache/bin/httpd'

解决方法

  1. 找到并打开文件httpd.conf
    find / -name httpd.conf

  2. 找到下面这句话,并删除前面的注释符,如果没有找到,那么添加这一行:
    LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

  3. 找到并打开/www/server/apache/conf/extra/httpd-ssl.conf
    在文中寻找是否有这一行,如果没有就添加
    SSLSessionCache "shmcb:/www/server/apach/logs/ssl_scache(512000)"

  4. 保存文件并重启apach
    systemctl restart httpd

  相关解决方案