From 7f5f457e3e0a5cad16168854db076700edde10c0 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 20 Jun 2022 17:22:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0L?= =?UTF-8?q?imitNOFILE=E3=80=81=E6=B7=BB=E5=8A=A0=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 3a3356e..cfc645f 100644 --- a/install.sh +++ b/install.sh @@ -1594,7 +1594,8 @@ NoNewPrivileges=yes ExecStart=${execStart} Restart=on-failure RestartPreventExitStatus=23 - +LimitNPROC=10000 +LimitNOFILE=1000000 [Install] WantedBy=multi-user.target @@ -1614,8 +1615,8 @@ installXrayService() { execStart='/etc/v2ray-agent/xray/xray run -confdir /etc/v2ray-agent/xray/conf' cat </etc/systemd/system/xray.service [Unit] -Description=Xray - A unified platform for anti-censorship -# Documentation=https://v2ray.com https://guide.v2fly.org +Description=Xray Service +Documentation=https://github.com/XTLS/Xray-core After=network.target nss-lookup.target Wants=network-online.target @@ -1627,7 +1628,8 @@ NoNewPrivileges=yes ExecStart=${execStart} Restart=on-failure RestartPreventExitStatus=23 - +LimitNPROC=10000 +LimitNOFILE=1000000 [Install] WantedBy=multi-user.target @@ -4717,11 +4719,16 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.5.70" + echoContent green "当前版本:v2.5.71" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus echoContent red "\n==============================================================" + echoContent red " 推广区【试运行】 " + echoContent green "AFF捐赠:https://github.com/mack-a/v2ray-agent/blob/master/documents/donation_aff.md\n" + echoContent green "虚拟币捐赠:0xB08b731653515b083deE362fefFc45d5eb96c35d\n" + echoContent green "推广可联系TG:https://t.me/mackaff" + echoContent red "==============================================================" if [[ -n "${coreInstallType}" ]]; then echoContent yellow "1.重新安装" else