七叶笔记 » Linux » centos无法启动apache怎么办

centos无法启动apache怎么办

1、进入配置文件目录

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

2、查看配置选项

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

3、注释NSSEngine

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

4、重启apache

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

推荐教程:centos教程

相关文章