This commit is contained in:
26
Docs/修改系统默认Limits值.md
Normal file
26
Docs/修改系统默认Limits值.md
Normal file
@@ -0,0 +1,26 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 修改系统默认Limits值
|
||||
|
||||
1. 修改文件
|
||||
|
||||
```bash
|
||||
vi /etc/security/limits.conf
|
||||
```
|
||||
|
||||
2. 添加内容
|
||||
|
||||
```bash
|
||||
* soft nofile 65535
|
||||
* hard nofile 65535
|
||||
root soft nofile 65535
|
||||
root hard nofile 65535
|
||||
```
|
||||
|
||||
3. 重新开启客户端链接查看
|
||||
|
||||
```bash
|
||||
ulimit -n
|
||||
```
|
||||
|
||||
结果为 `65535`
|
Reference in New Issue
Block a user