From 23a3d8d2477ad3f093662adaafa9b6a2f2becf5f Mon Sep 17 00:00:00 2001 From: Jinnan Wang Date: Tue, 18 Mar 2014 17:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=09=E5=88=A0=E9=99=A4set=5Flimits.conf.sh?= =?UTF-8?q?=E4=B8=AD=E6=97=A0=E7=94=A8=E7=9A=84=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于默认的栈大小就是8192所以 删除冗余行 --- install_shell/set_limits.conf.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/install_shell/set_limits.conf.sh b/install_shell/set_limits.conf.sh index aa5e55b..4cd97c1 100755 --- a/install_shell/set_limits.conf.sh +++ b/install_shell/set_limits.conf.sh @@ -3,18 +3,6 @@ . ./check_function.sh -LIMIT_CONFIG=/etc/security/limits.conf - - -# set limits.conf -grep -v ^# $LIMIT_CONFIG | grep stack | grep 16384 | grep hard &>/dev/null -if [ $? -eq 1 ];then - echo "* soft stack 8192" >> $LIMIT_CONFIG - echo "* hard stack 8192" >> $LIMIT_CONFIG -elif [ $? -eq 0 ];then - exit 0 -fi - #本脚本更改同时打开文件数的限制为65536