keepalive_timeout 75s;如何修改?

二月鸟 2019-8-30 653

网站管理中这个 keepalive_timeout 75s;是固定的,即使我在下面自定义了一条新的
keepalive_timeout 7200;
就会报错,请问如何自定义覆盖掉默认的 keepalive_timeout呢?

最新回复 (5)
  • 虚竹 2019-8-30
    引用 2
    keepalive_timeout 7200s;
    你少了单位。
  • 二月鸟 2019-8-31
    引用 3
    加了s依然报错的
  • 虚竹 2019-8-31
    引用 4
    既然报错,为何不提供错误信息?
  • 二月鸟 2019-8-31
    引用 5
    执行结果:

    操作失败:ServiceControlFailed!
    Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
  • 二月鸟 2019-8-31
    引用 6
    nginx: [emerg] "keepalive_timeout" directive is duplicate in /***conf/nginx.conf:25
    nginx: configuration file /etc/nginx/nginx.conf test failed
返回
发新帖