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 2017-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 2017-05-30 19:27:19 CST, end at Wed 2017-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: http://lists.freedesktop.org/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: http://lists.freedesktop.org/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: http://lists.freedesktop.org/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行的语法错误。

屏幕截图如下:

aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS85NW9EQS5qcGc=

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

我不知道错误在哪里。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值