parent
3bdcc831c4
commit
76dc31a30c
@ -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-->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user