httpd cannot be started under centos system

王林
Release: 2020-03-20 11:19:20
Original
2222 people have browsed it

httpd cannot be started under centos system

Problem restoration:

Failed to start httpd under centos system, as follows:

[root@csit yang]# service httpd start
Starting httpd:                                            [FAILED]
Copy after login

Solution:

1. Enter the configuration File directory

(Recommended tutorial: centos usage tutorial)

[root@csit httpd]# cd /etc/httpd/conf.d/
Copy after login

2. Find the configuration options and know that they are in the nss.conf file

[root@csit conf.d]$ grep NSSEngine *
nss.conf:NSSEngine on
Copy after login

3. Comment NSSEngine

[root@csit conf.d]$ vi  nss.conf 
#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
#NSSEngine on
Copy after login

4. Restart

[root@csit httpd]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                              [  OK  ]
Copy after login

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of httpd cannot be started under centos system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template