xinxuaw231 发表于 2018-11-21 13:35:34

apache 服务器启动不了,不报错

發表於 2014-4-2 15:13:32|只看該作者
  One fine morning I have discovered that my Apache (httpd) service is down and can't be started
  Step 1: Checking httpd Service Status:
  #/etc/init.d/httpd status
  httpd dead but pid file exists
  Step 2: Search httpd processes and kill those
  #ps -ef | grep httpd
  # killall -9 httpd
  Step 3: Remove httpd lock file if exist
  # rm -f /var/lock/subsys/httpd
  Step4: Restart Apache/httpd Service
  # service httpd restart
  Stop httpd   
  Start httpd   
  Need to dig down more.
  Step 5: Check httpd error log file
  # grep suexec /var/log/httpd/error_log
   suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
   suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
   suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
   suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  Step 6: Check httpd nss error log file
  #tail -300 /var/log/httpd/nss_error_log
   Certificate not verified: 'Server-Cert'
   SSL Library Error: -8181 Certificate has expired
   Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.
   Certificate not verified: 'Server-Cert'
   SSL Library Error: -8181 Certificate has expired
   Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.
   Certificate not verified: 'Server-Cert'
   SSL Library Error: -8181 Certificate has expired
   Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.

  root cause of this issue is in a module called nss. mod_nssis an>  Step 7: Remove nss.conf file from httpd conf.d directory
  #cd /etc/httpd/conf.d
  #mv nss.conf nss.conf.orig
  #/etc/init.d/httpd start
  Start httpd   [OK
  文章來源:http://didar15.blogspot.tw/2013/ ... exec-mechanism.html

页: [1]
查看完整版本: apache 服务器启动不了,不报错