Home > Operation and Maintenance > CentOS > What should I do if centos cannot start apache?

What should I do if centos cannot start apache?

王林
Release: 2020-05-18 13:11:10
Original
2577 people have browsed it

What should I do if centos cannot start apache?

1. Enter the configuration file directory

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

2. View the configuration options

[root@csit conf.d]$ grep NSSEngine *    #可以看到在 nss.conf 这个文件中  
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 apache

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

Recommended tutorial: centos tutorial

The above is the detailed content of What should I do if centos cannot start apache?. 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