nginx无法启动 - appnode

重启nginx提示错误:

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

根据APPnode论坛提示用指令systemctl status nginx.service
反馈代码:

● nginx.service - nginx - high performance web server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2022-12-09 19:46:17 CST; 2min 32s ago
     Docs: http://nginx.org/en/docs/
  Process: 501 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
 Main PID: 8391 (code=exited, status=0/SUCCESS)

Dec 09 19:46:17 host1 systemd[1]: Starting nginx - high performance web server...
Dec 09 19:46:17 host1 nginx[501]: nginx: [emerg] unknown directive "<<<<<<<" in /data/mystack/sites/xxxxxx.com/conf/nginx.conf:44
Dec 09 19:46:17 host1 systemd[1]: nginx.service: control process exited, code=exited status=1
Dec 09 19:46:17 host1 systemd[1]: Failed to start nginx - high performance web server.
Dec 09 19:46:17 host1 systemd[1]: Unit nginx.service entered failed state.
Dec 09 19:46:17 host1 systemd[1]: nginx.service failed.

问题在nginx: [emerg] unknown directive “<<<<<<<” in /data/mystack/sites/xxxxxx.com/conf/nginx.conf:44
44行有未知指令,删除**<<<<<<<**
再执行启动代码,还提示=======、>>>>>>>有问题,删除
同时 fastcgi_read_timeout还多了一行,删除 fastcgi_read_timeout 600s;

根源解决,在网站管理内配置nginx代码

<<<<<<<
        fastcgi_read_timeout     300s;
=======
        fastcgi_read_timeout     600s;
>>>>>>>

改为

        fastcgi_read_timeout     300s;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值