Home >Operation and Maintenance >CentOS >What to do if httpd cannot be started under centos

What to do if httpd cannot be started under centos

王林
王林Original
2020-03-30 14:26:513090browse

What to do if httpd cannot be started under centos

Problem:

Failed to open httpd, as shown in the figure:

What to do if httpd cannot be started under centos

(Recommended tutorial: centos Tutorial)

Solution:

1. Enter the configuration file directory

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

2. Find the configuration option

[root@csit conf.d]$ grep NSSEngine *    #可以看到在 nss.conf 这个文件中
nss.conf:NSSEngine on

3. Comment NSSEngine

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

4. Restart httpd

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

Recommended related video tutorials: linux video tutorial

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

Statement:
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