add LimitNOFILE

pull/964/head
233boy 2 years ago
parent b4153f2241
commit 776d7e6887
  1. 2
      src/download-v2ray.sh
  2. 4
      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 ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json
Restart=on-failure Restart=on-failure
StartLimitBurst=0 StartLimitBurst=0
LimitNOFILE=1048576
LimitNPROC=512
#Restart=always #Restart=always
[Install] [Install]

@ -10,7 +10,7 @@ none='\e[0m'
# Root # Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.61" _version="v3.62"
cmd="apt-get" cmd="apt-get"
@ -2618,8 +2618,6 @@ menu() {
echo echo
echo "捐赠脚本作者: https://233v2.com/donate/" echo "捐赠脚本作者: https://233v2.com/donate/"
echo echo
echo "捐助 V2Ray: https://www.v2ray.com/chapter_00/02_donate.html"
echo
echo -e "$yellow 1. $none查看 V2Ray 配置" echo -e "$yellow 1. $none查看 V2Ray 配置"
echo echo
echo -e "$yellow 2. $none修改 V2Ray 配置" echo -e "$yellow 2. $none修改 V2Ray 配置"

Loading…
Cancel
Save