diff --git a/documents/common_commands.md b/documents/common_commands.md deleted file mode 100644 index 4882769..0000000 --- a/documents/common_commands.md +++ /dev/null @@ -1,58 +0,0 @@ -# 启动脚本 -``` -vasma -``` - -# 服务管理 -## Xray-core、v2ray-core、trojan-go -- 重启 -``` -# xray -systemctl restart xray - -# v2ray -systemctl restart v2ray - -# trojan-go -systemctl restart trojan-go -``` - -- 启动 -```` -# xray -systemctl start xray - -# v2ray -systemctl start v2ray - -# trojan-go -systemctl start trojan-go -```` - -- 关闭 -``` -# xray -systemctl stop xray - -# v2ray -systemctl stop v2ray - -# trojan-go -systemctl stop trojan-go -``` - -## nginx -- 重启 -``` -nginx -s reload -``` - -- 启动 -```` -nginx -```` - -- 关闭 -``` -nginx -s stop -``` \ No newline at end of file diff --git a/documents/shell_error.md b/documents/shell_error.md deleted file mode 100644 index 3aef400..0000000 --- a/documents/shell_error.md +++ /dev/null @@ -1,35 +0,0 @@ -# 脚本常见错误处理 -## 1.输入域名后卡住 -``` -# 请手动打开icmp -``` - -## 2.下载脚本失败 - - -- 需要手动更改dns -``` -# 文件位置 -/etc/resolv.conf - -# 文件内容 -nameserver 8.8.8.8 -nameserver 1.1.1.1 -nameserver 8.8.4.4 -``` - -## 3.生成证书失败 -- 请更换Debian或者Ubuntu - - - -## 4.Debian8启动nginx失败 -### 解决方法一 -- 手动删除add_header选项 -``` -vim /etc/nginx/conf.d/alone.conf -# 删除下方代码 -location / { - add_header Strict-Transport-Security "max-age=63072000" always; -} -``` \ No newline at end of file diff --git a/install.sh b/install.sh index 4fae9e5..31f928a 100644 --- a/install.sh +++ b/install.sh @@ -2559,6 +2559,7 @@ removeUser() { # 更新脚本 updateV2RayAgent() { echoContent skyBlue "\n进度 $1/${totalProgress} : 更新v2ray-agent脚本" + rm -rf /etc/v2ray-agent/install.sh if wget --help | grep -q show-progress; then wget -c -q --show-progress -P /etc/v2ray-agent/ -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" else @@ -2571,6 +2572,9 @@ updateV2RayAgent() { echoContent green "\n ---> 更新完毕" echoContent yellow " ---> 请手动执行[vasma]打开脚本" echoContent green " ---> 当前版本:${version}\n" + echoContent yellow "如更新不成功,请手动执行下面命令\n" + echoContent skyBlue "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" + echo exit 0 } @@ -3245,7 +3249,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.3.21" + echoContent green "当前版本:v2.3.22" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="