启动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