From 63ec5a7189b6bc6d420618404a5524efdfb6869d Mon Sep 17 00:00:00 2001 From: offends Date: Tue, 26 Aug 2025 16:37:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docs/修改系统默认Limits值.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Docs/修改系统默认Limits值.md diff --git a/Docs/修改系统默认Limits值.md b/Docs/修改系统默认Limits值.md new file mode 100644 index 0000000..6dc2e83 --- /dev/null +++ b/Docs/修改系统默认Limits值.md @@ -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` \ No newline at end of file