chore: 添加系统安全与性能优化配置文件

添加了 `limits.conf` 和 `sysctl.conf` 配置文件,用于优化系统资源限制、网络性能和安全性。这些配置包括增加文件句柄数、优化TCP连接、防止资源耗尽以及增强系统安全性等。
This commit is contained in:
2025-05-11 12:48:49 +08:00
parent c5ae6cf8eb
commit 0559c31f92
2 changed files with 78 additions and 0 deletions

9
etc/security/limits.conf Normal file
View File

@@ -0,0 +1,9 @@
#<domain> <type> <item> <value>
#
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
root soft nofile 65535
root hard nofile 65535