mirror of https://github.com/mack-a/v2ray-agent
Merge branch 'master' of another.github.com:mack-a/v2ray-agent
commit
360080c502
13
README.md
13
README.md
|
@ -43,7 +43,9 @@
|
||||||
- 无需卸载即可安装、重装任意组合
|
- 无需卸载即可安装、重装任意组合
|
||||||
- 支持卸载时保留Nginx、tls证书。如果acme.sh申请的证书有效的情况下,不会重新签发。
|
- 支持卸载时保留Nginx、tls证书。如果acme.sh申请的证书有效的情况下,不会重新签发。
|
||||||
- 支持纯IPv6,[IPv6注意事项](https://github.com/mack-a/v2ray-agent/blob/master/documents/IPv6_help.md)
|
- 支持纯IPv6,[IPv6注意事项](https://github.com/mack-a/v2ray-agent/blob/master/documents/IPv6_help.md)
|
||||||
- 支持利用IPv6排除Google的人机验证,**需自己申请IPv6隧道,不建议使用自带的IPv6**
|
- 支持IPv6分流
|
||||||
|
- 支持日志管理
|
||||||
|
- 支持多端口配置
|
||||||
- [支持自定义证书安装](https://github.com/mack-a/v2ray-agent/blob/master/documents/install_tls.md)
|
- [支持自定义证书安装](https://github.com/mack-a/v2ray-agent/blob/master/documents/install_tls.md)
|
||||||
|
|
||||||
## 支持的安装类型
|
## 支持的安装类型
|
||||||
|
@ -70,6 +72,8 @@
|
||||||
- 10.北联+西伯利亚、伯力ttk/RT
|
- 10.北联+西伯利亚、伯力ttk/RT
|
||||||
- 11.CN2+HE
|
- 11.CN2+HE
|
||||||
- 12.电信+台湾远传电信
|
- 12.电信+台湾远传电信
|
||||||
|
- 13.CN2+JP NTT
|
||||||
|
- 14.中转+cloudflare+落地机【可拉全球】
|
||||||
|
|
||||||
## 组合推荐
|
## 组合推荐
|
||||||
|
|
||||||
|
@ -91,6 +95,7 @@
|
||||||
- **为了节约时间,反馈请带上详细截图或者按照模版规范,无截图或者不按照规范的issue会被直接关闭**
|
- **为了节约时间,反馈请带上详细截图或者按照模版规范,无截图或者不按照规范的issue会被直接关闭**
|
||||||
- **不建议GCP用户使用**
|
- **不建议GCP用户使用**
|
||||||
- **不建议使用Centos以及低版本的系统,2.3.x后不再支持Centos6**
|
- **不建议使用Centos以及低版本的系统,2.3.x后不再支持Centos6**
|
||||||
|
- **[如有使用不明白的地方请先查看脚本使用指南](https://github.com/mack-a/v2ray-agent/blob/master/documents/how_to_use.md)**
|
||||||
|
|
||||||
## 脚本目录
|
## 脚本目录
|
||||||
|
|
||||||
|
@ -136,13 +141,13 @@
|
||||||
/usr/share/nginx/html
|
/usr/share/nginx/html
|
||||||
```
|
```
|
||||||
|
|
||||||
## [脚本功能详解、错误处理、常用命令](https://github.com/mack-a/v2ray-agent/blob/master/documents/how_to_use.md)
|
## [脚本使用指南](https://github.com/mack-a/v2ray-agent/blob/master/documents/how_to_use.md)
|
||||||
|
|
||||||
## 安装脚本
|
## 安装脚本
|
||||||
|
|
||||||
- 支持快捷方式启动,安装完毕后,shell输入[**vasma**]即可打开脚本,脚本执行路径[**/etc/v2ray-agent/install.sh**]
|
- 支持快捷方式启动,安装完毕后,shell输入【**vasma**】即可打开脚本,脚本执行路径[**/etc/v2ray-agent/install.sh**]
|
||||||
|
|
||||||
- Latest Version
|
- Latest Version【推荐】
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
|
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
|
||||||
|
|
41
install.sh
41
install.sh
|
@ -2706,14 +2706,24 @@ checkLog() {
|
||||||
if [[ -z ${configPath} ]]; then
|
if [[ -z ${configPath} ]]; then
|
||||||
echoContent red " ---> 没有检测到安装目录,请执行脚本安装内容"
|
echoContent red " ---> 没有检测到安装目录,请执行脚本安装内容"
|
||||||
fi
|
fi
|
||||||
|
local logStatus=false
|
||||||
|
if [[ -n $(cat ${configPath}00_log.json|grep access) ]];then
|
||||||
|
logStatus=true
|
||||||
|
fi
|
||||||
|
|
||||||
echoContent skyBlue "\n功能 $1/${totalProgress} : 查看日志"
|
echoContent skyBlue "\n功能 $1/${totalProgress} : 查看日志"
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent yellow "# 建议仅调试打开access日志\n"
|
echoContent yellow "# 建议仅调试打开access日志\n"
|
||||||
echoContent yellow "1.打开access日志"
|
|
||||||
echoContent yellow "2.关闭access日志"
|
if [[ "${logStatus}" == "false" ]];then
|
||||||
echoContent yellow "3.监听access日志"
|
echoContent yellow "1.打开access日志"
|
||||||
echoContent yellow "4.监听error日志"
|
else
|
||||||
echoContent yellow "5.清空日志"
|
echoContent yellow "1.关闭access日志"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echoContent yellow "2.监听access日志"
|
||||||
|
echoContent yellow "3.监听error日志"
|
||||||
|
echoContent yellow "4.清空日志"
|
||||||
echoContent red "=============================================================="
|
echoContent red "=============================================================="
|
||||||
|
|
||||||
read -r -p "请选择:" selectAccessLogType
|
read -r -p "请选择:" selectAccessLogType
|
||||||
|
@ -2721,7 +2731,8 @@ checkLog() {
|
||||||
|
|
||||||
case ${selectAccessLogType} in
|
case ${selectAccessLogType} in
|
||||||
1)
|
1)
|
||||||
cat <<EOF >${configPath}00_log.json
|
if [[ "${logStatus}" == "false" ]];then
|
||||||
|
cat <<EOF >${configPath}00_log.json
|
||||||
{
|
{
|
||||||
"log": {
|
"log": {
|
||||||
"access":"${configPathLog}access.log",
|
"access":"${configPathLog}access.log",
|
||||||
|
@ -2729,13 +2740,9 @@ checkLog() {
|
||||||
"loglevel": "warning"
|
"loglevel": "warning"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
reloadCore
|
elif [[ "${logStatus}" == "true" ]];then
|
||||||
checkLog 1
|
cat <<EOF >${configPath}00_log.json
|
||||||
;;
|
|
||||||
2)
|
|
||||||
cat <<EOF >${configPath}00_log.json
|
|
||||||
{
|
{
|
||||||
"log": {
|
"log": {
|
||||||
"error": "${configPathLog}error.log",
|
"error": "${configPathLog}error.log",
|
||||||
|
@ -2743,15 +2750,17 @@ EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
reloadCore
|
reloadCore
|
||||||
|
checkLog 1
|
||||||
;;
|
;;
|
||||||
3)
|
2)
|
||||||
tail -f ${configPathLog}access.log
|
tail -f ${configPathLog}access.log
|
||||||
;;
|
;;
|
||||||
4)
|
3)
|
||||||
tail -f ${configPathLog}error.log
|
tail -f ${configPathLog}error.log
|
||||||
;;
|
;;
|
||||||
5)
|
4)
|
||||||
echo >${configPathLog}access.log
|
echo >${configPathLog}access.log
|
||||||
echo >${configPathLog}error.log
|
echo >${configPathLog}error.log
|
||||||
;;
|
;;
|
||||||
|
@ -3627,7 +3636,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v2.4.14"
|
echoContent green "当前版本:v2.4.15"
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue