[chore](script message) More convenient error msg for nofile open. #39642 (#40195)

cherry pick from #39642
This commit is contained in:
zhiqiang
2024-08-31 00:18:20 +08:00
committed by GitHub
parent 04fbcbd337
commit 44b87cb5ba

View File

@ -79,7 +79,11 @@ fi
MAX_FILE_COUNT="$(ulimit -n)"
if [[ "${MAX_FILE_COUNT}" -lt 60000 ]]; then
echo "Please set the maximum number of open file descriptors larger than 60000, eg: 'ulimit -n 60000'."
echo "Set max number of open file descriptors to a value greater than 60000."
echo "Ask your system manager to modify /etc/security/limits.conf and append content like"
echo " * soft nofile 655350"
echo " * hard nofile 655350"
echo "and then run 'ulimit -n 655350' to take effect on current session."
exit 1
fi