mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修改在线更新后无法更新新版本的bug
parent
6405d17b5f
commit
4ad3cf0c21
|
@ -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
|
|
||||||
```
|
|
|
@ -1,35 +0,0 @@
|
||||||
# 脚本常见错误处理
|
|
||||||
## 1.输入域名后卡住
|
|
||||||
```
|
|
||||||
# 请手动打开icmp
|
|
||||||
```
|
|
||||||
|
|
||||||
## 2.下载脚本失败
|
|
||||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/install/shell_error_01.jpg" width=700>
|
|
||||||
|
|
||||||
- 需要手动更改dns
|
|
||||||
```
|
|
||||||
# 文件位置
|
|
||||||
/etc/resolv.conf
|
|
||||||
|
|
||||||
# 文件内容
|
|
||||||
nameserver 8.8.8.8
|
|
||||||
nameserver 1.1.1.1
|
|
||||||
nameserver 8.8.4.4
|
|
||||||
```
|
|
||||||
|
|
||||||
## 3.生成证书失败
|
|
||||||
- 请更换Debian或者Ubuntu
|
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/install/shell_error_02.jpg" width=700>
|
|
||||||
|
|
||||||
## 4.Debian8启动nginx失败
|
|
||||||
### 解决方法一
|
|
||||||
- 手动删除add_header选项
|
|
||||||
```
|
|
||||||
vim /etc/nginx/conf.d/alone.conf
|
|
||||||
# 删除下方代码
|
|
||||||
location / {
|
|
||||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
||||||
}
|
|
||||||
```
|
|
|
@ -2559,6 +2559,7 @@ removeUser() {
|
||||||
# 更新脚本
|
# 更新脚本
|
||||||
updateV2RayAgent() {
|
updateV2RayAgent() {
|
||||||
echoContent skyBlue "\n进度 $1/${totalProgress} : 更新v2ray-agent脚本"
|
echoContent skyBlue "\n进度 $1/${totalProgress} : 更新v2ray-agent脚本"
|
||||||
|
rm -rf /etc/v2ray-agent/install.sh
|
||||||
if wget --help | grep -q show-progress; then
|
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"
|
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
|
else
|
||||||
|
@ -2571,6 +2572,9 @@ updateV2RayAgent() {
|
||||||
echoContent green "\n ---> 更新完毕"
|
echoContent green "\n ---> 更新完毕"
|
||||||
echoContent yellow " ---> 请手动执行[vasma]打开脚本"
|
echoContent yellow " ---> 请手动执行[vasma]打开脚本"
|
||||||
echoContent green " ---> 当前版本:${version}\n"
|
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
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3245,7 +3249,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.3.21"
|
echoContent green "当前版本:v2.3.22"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:七合一共存脚本"
|
echoContent green "描述:七合一共存脚本"
|
||||||
echoContent red "=============================================================="
|
echoContent red "=============================================================="
|
||||||
|
|
Loading…
Reference in New Issue