失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > Linux中httpd353错误 linux - 由于控制进程退出并显示错误代码 因此httpd.service

Linux中httpd353错误 linux - 由于控制进程退出并显示错误代码 因此httpd.service

时间:2019-07-21 01:55:04

相关推荐

Linux中httpd353错误 linux - 由于控制进程退出并显示错误代码 因此httpd.service

更改00-nova-placement-api.conf ,我正在虚拟机中研究00-nova-placement-api.conf ,

我想重启httpd :

systemctl restart httpd

但是我失败了:

由于控制进程退出并显示错误代码,因此httpd.service的作业失败。 有关详细信息,请参见“ systemctl状态httpd.service”和“ journalctl -xe”。

所以我执行

systemctl status httpd.service

我得到以下信息:

x— httpd.service - The Apache HTTP Server

Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Wed -05-31 16:50:51 CST; 24s ago

Docs: man:httpd(8)

man:apachectl(8)

Process: 34969 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)

Process: 34967 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

Main PID: 34967 (code=exited, status=1/FAILURE)

May 31 16:50:51 controller1 systemd[1]: Starting The Apache HTTP Server...

May 31 16:50:51 controller1 httpd[34967]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 16 of /etc/httpd/con...fVersion>

May 31 16:50:51 controller1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

May 31 16:50:51 controller1 kill[34969]: kill: cannot find process ""

May 31 16:50:51 controller1 systemd[1]: httpd.service: control process exited, code=exited status=1

May 31 16:50:51 controller1 systemd[1]: Failed to start The Apache HTTP Server.

May 31 16:50:51 controller1 systemd[1]: Unit httpd.service entered failed state.

May 31 16:50:51 controller1 systemd[1]: httpd.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

我执行以下命令:

journalctl -xn

然后我得到以下信息:

[root@controller1 ~]# journalctl -xn

-- Logs begin at Tue -05-30 19:27:19 CST, end at Wed -05-31 17:58:53 CST. --

May 31 17:58:48 controller1 systemd[1]: Unit openstack-nova-api.service entered failed state.

May 31 17:58:48 controller1 systemd[1]: openstack-nova-api.service failed.

May 31 17:58:49 controller1 systemd[1]: openstack-nova-api.service holdoff time over, scheduling restart.

May 31 17:58:49 controller1 systemd[1]: Starting OpenStack Nova API Server...

-- Subject: Unit openstack-nova-api.service has begun start-up

-- Defined-By: systemd

-- Support: /mailman/listinfo/systemd-devel

--

-- Unit openstack-nova-api.service has begun starting up.

May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service: main process exited, code=exited, status=1/FAILURE

May 31 17:58:53 controller1 systemd[1]: Failed to start OpenStack Nova API Server.

-- Subject: Unit openstack-nova-api.service has failed

-- Defined-By: systemd

-- Support: /mailman/listinfo/systemd-devel

--

-- Unit openstack-nova-api.service has failed.

--

-- The result is failed.

May 31 17:58:53 controller1 systemd[1]: Unit openstack-nova-api.service entered failed state.

May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service failed.

May 31 17:58:53 controller1 systemd[1]: openstack-nova-api.service holdoff time over, scheduling restart.

May 31 17:58:53 controller1 systemd[1]: Starting OpenStack Nova API Server...

-- Subject: Unit openstack-nova-api.service has begun start-up

-- Defined-By: systemd

-- Support: /mailman/listinfo/systemd-devel

--

-- Unit openstack-nova-api.service has begun starting up.

我的00-nova-placement-api.conf如下:

Listen 8778

WSGIProcessGroup nova-placement-api

WSGIApplicationGroup %{GLOBAL}

WSGIPassAuthorization On

WSGDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova

WSGIScriptAlias //usr/bin/nova-placement-api

Order allow,deny

Allow from all

Require all granted

=2.4>

ErrorLogFormat "%M"

ErrorLog /var/log/nova/nova-placement-api.log

Alias /nova-placement-api /usr/bin/nova-placement-api

SetHandler wsgi-script

Options + ExecCGI

WSGIProcessGroup nova-placemnet-api

WSGIApplicationGroup %{GLOBAL}

WSGIPassAuthorization On

~

态度

我在信息中发现了一个提示:

:httpd:/ etc / httpd / conf / httpd的第353行的语法错误.conf:/ etc / httpd / con ...的第14行的语法错误。

屏幕截图如下:

353行如下: IncludeOptional conf.d/*.conf

我不知道错误在哪里。

Linux中httpd353错误 linux - 由于控制进程退出并显示错误代码 因此httpd.service的作业失败 - 堆栈内存溢出...

如果觉得《Linux中httpd353错误 linux - 由于控制进程退出并显示错误代码 因此httpd.service》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。