mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 添加LimitNOFILE、添加推广区
parent
a022fcd4f5
commit
7f5f457e3e
17
install.sh
17
install.sh
|
@ -1594,7 +1594,8 @@ NoNewPrivileges=yes
|
||||||
ExecStart=${execStart}
|
ExecStart=${execStart}
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=23
|
RestartPreventExitStatus=23
|
||||||
|
LimitNPROC=10000
|
||||||
|
LimitNOFILE=1000000
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -1614,8 +1615,8 @@ installXrayService() {
|
||||||
execStart='/etc/v2ray-agent/xray/xray run -confdir /etc/v2ray-agent/xray/conf'
|
execStart='/etc/v2ray-agent/xray/xray run -confdir /etc/v2ray-agent/xray/conf'
|
||||||
cat <<EOF >/etc/systemd/system/xray.service
|
cat <<EOF >/etc/systemd/system/xray.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Xray - A unified platform for anti-censorship
|
Description=Xray Service
|
||||||
# Documentation=https://v2ray.com https://guide.v2fly.org
|
Documentation=https://github.com/XTLS/Xray-core
|
||||||
After=network.target nss-lookup.target
|
After=network.target nss-lookup.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
|
@ -1627,7 +1628,8 @@ NoNewPrivileges=yes
|
||||||
ExecStart=${execStart}
|
ExecStart=${execStart}
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=23
|
RestartPreventExitStatus=23
|
||||||
|
LimitNPROC=10000
|
||||||
|
LimitNOFILE=1000000
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -4717,11 +4719,16 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
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 "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
echoContent red "\n=============================================================="
|
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
|
if [[ -n "${coreInstallType}" ]]; then
|
||||||
echoContent yellow "1.重新安装"
|
echoContent yellow "1.重新安装"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue