启动httpd服务:SSLCertificateFile: file ‘/var/www/miq/vmdb/certs/server.cer‘ does not exist or is empty

启动httpd服务:SSLCertificateFile: file ‘/var/www/miq/vmdb/certs/server.cer’ does not exist or is empty

启动httpd服务,失败:
复制代码

[root@test vmdb]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 17 of /etc/httpd/conf.d/cfme-https-application.conf:
SSLCertificateFile: file ‘/var/www/miq/vmdb/certs/server.cer’ does not exist or is empty
[FAILED]

复制代码

网上搜了下,说与selinux相关,想到之前设置samba服务,开机自启动,并允许外部访问,曾经修改过selinux配置。

然后关闭selinux:

setenforce 0

再启动httpd服务:

service httpd start

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; en>
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: failed (Result: exit-code) since Mon 2022-04-18 2>
     Docs: man:httpd.service(8)
  Process: 4359 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGRO>
 Main PID: 4359 (code=exited, status=1/FAILURE)
   Status: "Reading configuration..."

4月 18 20:13:25 localhost.localdomain systemd[1]: Starting T>
4月 18 20:13:25 localhost.localdomain httpd[4359]: AH00526: >
4月 18 20:13:25 localhost.localdomain httpd[4359]: SSLCertif>
4月 18 20:13:25 localhost.localdomain systemd[1]: httpd.serv>
4月 18 20:13:25 localhost.localdomain systemd[1]: httpd.serv>
4月 18 20:13:25 localhost.localdomain systemd[1]: Failed to >
~
~
~

[root@localhost ~]# setenforce 0
[root@localhost ~]# service httpd start
Redirecting to /bin/systemctl start httpd.service
Enter TLS private key passphrase for localhost:443 (RSA) : ******
[root@localhost ~]# ^C

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值