From c531cd9334a89de9f8e992034826a31443e769d8 Mon Sep 17 00:00:00 2001 From: kissshot <4530897+kkkgo@users.noreply.github.com> Date: Sat, 18 May 2024 20:29:48 +0800 Subject: [PATCH] add ulimit in default profile. --- FILES/etc/profile | 2 +- FILES/etc/sysctl.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 FILES/etc/sysctl.conf diff --git a/FILES/etc/profile b/FILES/etc/profile index b1ec886..cfd44c3 100644 --- a/FILES/etc/profile +++ b/FILES/etc/profile @@ -5,7 +5,7 @@ export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=${HOME:-/root} export PS1='\u@\h:\w\$ ' export ENV=/etc/shinit - +ulimit -SHn 1048576 case "$TERM" in xterm*|rxvt*) export PS1='\[\e]0;\u@\h: \w\a\]'$PS1 diff --git a/FILES/etc/sysctl.conf b/FILES/etc/sysctl.conf new file mode 100644 index 0000000..77da4d0 --- /dev/null +++ b/FILES/etc/sysctl.conf @@ -0,0 +1 @@ +fs.file-max = 9223372036854775807 \ No newline at end of file