服务器报错:Job for httpd.service failed because the control process exited with error code. See

 

报错信息:

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

 

错误的原因是因为我们的端口找不到(应该是这个问题)......;

 

重启apache后报错,先排查你配置了什么.conf文件,然后看看他里面的格式,可能是代码风格错误(气死人就是个der)

 

服务器报错:Job for httpd.service failed because the control process exited with error code. See_第1张图片

 

记录下错误1:

第一次是代码的风格有问题,有些代码颜色不对然后就没有执行(进行报错,执行就会失败)也有可能是配置向有问题。


    SSLEngine on
	SSLProtocol all -SSLv2 -SSLv3
	SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
	SSLHonorCipherOrder on
	#证书公钥配置
	SSLCertificateFile "/etc/httpd/cert/namehtpublic.crt"
	#证书私钥配置
	SSLCertificateKeyFile "/etc/httpd/cert/nameht.key"
	# 证书链配置
	SSLCertificateChainFile "/etc/httpd/cert/namehtchain.crt"
	RewriteEngine On
	RewriteCond %{HTTP:Authorization} ^(.*)
	RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
	DocumentRoot  "/var/www/html/thinkphp5-test/public/"
    ServerName      ht.likeball.top
    ServerAlias     ht.likeball.top
  
      Options +Includes -Indexes
      AllowOverride All
      Order allow,deny
      Allow from all
  


注意排查一下就可以了;如果重启apache报错后,那么就进行排查你刚才增加或者修改的配置文件;

 

 

记录下错误2:

服务器报错:Job for httpd.service failed because the control process exited with error code. See_第2张图片

我将

LoadModule foo_module modules/mod_foo.so

这一句话解开了,然后Apache重启就报错了,屏蔽后就可以正常重启;

服务器报错:Job for httpd.service failed because the control process exited with error code. See_第3张图片

 

你可能感兴趣的:(文档,liunx)