Job for openresty.service failed because the control process exited with error code.

在centos7中,启动openresty时报错:

Job for openresty.service failed because the control process exited with error code. See "systemctl status openresty.service" and "journalctl -xe" for details.

然后执行:

systemctl status openresty.service

发现:

● openresty.service - The OpenResty Application Platform
   Loaded: loaded (/usr/lib/systemd/system/openresty.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 四 2020-04-02 13:49:01 CST; 2min 14s ago

4月 02 13:49:01 localhost.localdomain systemd[1]: Starting The OpenResty Application Platform...
4月 02 13:49:01 localhost.localdomain nginx[3895]: nginx: [emerg] unknown directive "limit" in /usr/local/openresty/nginx/conf/nginx.conf:35
4月 02 13:49:01 localhost.localdomain nginx[3895]: nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed
4月 02 13:49:01 localhost.localdomain systemd[1]: openresty.service: control process exited, code=exited status=1
4月 02 13:49:01 localhost.localdomain systemd[1]: Failed to start The OpenResty Application Platform.
4月 02 13:49:01 localhost.localdomain systemd[1]: Unit openresty.service entered failed state.
4月 02 13:49:01 localhost.localdomain systemd[1]: openresty.service failed.

查看以上信息,可知:

4月 02 13:49:01 localhost.localdomain nginx[3895]: nginx: [emerg] unknown directive "limit" in /usr/local/openresty/nginx/conf/nginx.conf:35

应该是该配置文件有误。最后成功。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值