Skip to content

Commit

Permalink
doc: update nginx.md (#493)
Browse files Browse the repository at this point in the history
* add ulimit config of nginx

* minor
  • Loading branch information
mailbaoer committed Dec 25, 2023
1 parent 3bdcc83 commit 76dc31a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ nginx -s quit # 平滑关闭nginx
nginx -V # 查看nginx的安装状态,
```

systemctl 管理的 ulimit 不继承系统设置的问题

```bash
# 执行 status 命令,看到 Loaded: loaded (/lib/systemd/system/nginx.service;...) 这一行的nginx.service 文件位置
sudo service nginx status

# 打开上一步中的 service 文件
sudo vim /lib/systemd/system/nginx.service

# 找到[Service]部分,将 `LimitNOFILE=65535`添加到该部分
[Service]
...
LimitNOFILE=65535
...
```

### Docker 安装
<!--rehype:wrap-class=col-span-2-->

Expand Down

0 comments on commit 76dc31a

Please sign in to comment.