From 776d7e6887e395690fcd1857cd6acf6a220fdbca Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Wed, 5 Oct 2022 09:36:53 +0800 Subject: [PATCH] add LimitNOFILE --- src/download-v2ray.sh | 2 ++ v2ray.sh | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/download-v2ray.sh b/src/download-v2ray.sh index a54583a..256dc70 100644 --- a/src/download-v2ray.sh +++ b/src/download-v2ray.sh @@ -57,6 +57,8 @@ NoNewPrivileges=true ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json Restart=on-failure StartLimitBurst=0 +LimitNOFILE=1048576 +LimitNPROC=512 #Restart=always [Install] diff --git a/v2ray.sh b/v2ray.sh index 319530e..49996a4 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v3.61" +_version="v3.62" cmd="apt-get" @@ -2618,8 +2618,6 @@ menu() { echo echo "捐赠脚本作者: https://233v2.com/donate/" echo - echo "捐助 V2Ray: https://www.v2ray.com/chapter_00/02_donate.html" - echo echo -e "$yellow 1. $none查看 V2Ray 配置" echo echo -e "$yellow 2. $none修改 V2Ray 配置"