2026-04-02 23:12:36 +08:00

28 lines
537 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: nginx+php上传文件配置
createTime: 2021/09/25
tags:
- linux
categories:
- 随记
---
- 设置`php.ini`
主要把包括的选项有:`post_max_size``upload_max_filesize``memory_limit``max_execution_time`
- 设置`nginx.conf`
主要是`client_max_body_size`,注意设置`sendfile on`
- nginx 一定程度上避免 502
```ini
location / {
......
    proxy_connect_timeout 300;
    proxy_send_timeout 300;
    proxy_read_timeout 300;
}
```