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}
|
||||
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 <<EOF >/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
|
||||
|
|
Loading…
Reference in New Issue