centos系统下无法启动httpd

问题还原:

centos系统下启动httpd失败,如下:

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

解决方法:

1、进入配置文件目录

(推荐教程:centos使用教程)

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

2、查找配置选项,并且知道在 nss.conf 这个文件中

[root@csit conf.d]$ grep NSSEngine *
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、重启

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

相关视频教程推荐:linux视频教程