1. Enter the configuration file directory
[root@csit httpd]# cd /etc/httpd/conf.d/
2. View the configuration options
[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 apache
[root@csit httpd]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
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!