From bd8b0d589ada3f43b81871ac71e594dd5b7fcfba Mon Sep 17 00:00:00 2001 From: snail007 Date: Sat, 5 Aug 2023 18:18:42 +0800 Subject: [PATCH] update --- README.md | 15 +++++++++------ README_ZH.md | 7 +++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8cb35f9..4ad6083 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,13 @@ Tip: All operations require root privileges. The free version performs this: ```shell -curl -L https://mirrors.goproxyauth.com/https://raw.githubusercontent.com/snail007/goproxy/master/install_auto.sh | bash +bash -c "$(curl -s -L https://raw.githubusercontent.com/snail007/goproxy/master/install_auto.sh)" ``` The commercial version performs this: ```shell -curl -L https://mirrors.goproxyauth.com/https://raw.githubusercontent.com/snail007/goproxy/master/install_auto_commercial.sh | bash +bash -c "$(curl -s -L https://raw.githubusercontent.com/snail007/goproxy/master/install_auto_commercial.sh)" ``` The installation is complete, the configuration directory is /etc/proxy. For more detailed usage, please refer to the manual directory above to learn more about the features you want to use. @@ -114,14 +114,14 @@ The free version performs this: ```shell cd /root/proxy/ -wget https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/releases/download/v7.9/proxy-linux-amd64.tar.gz +wget https://github.com/snail007/goproxy/releases/download/v7.9/proxy-linux-amd64.tar.gz ``` The commercial version performs this: ```shell cd /root/proxy/ -wget https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/releases/download/v7.9/proxy-linux-amd64_commercial.tar.gz +wget https://github.com/snail007/goproxy/releases/download/v7.9/proxy-linux-amd64_commercial.tar.gz ``` 2. Download the automatic installation script @@ -130,7 +130,7 @@ The free version performs this: ```shell cd /root/proxy/ -wget https://mirrors.goproxyauth.com/https://raw.githubusercontent.com/snail007/goproxy/master/install.sh +wget https://raw.githubusercontent.com/snail007/goproxy/master/install.sh chmod +x install.sh ./install.sh ``` @@ -139,12 +139,15 @@ The commercial version performs this: ```shell cd /root/proxy/ -wget https://mirrors.goproxyauth.com/https://raw.githubusercontent.com/snail007/goproxy/master/install_commercial.sh +wget https://raw.githubusercontent.com/snail007/goproxy/master/install_commercial.sh chmod +x install_commercial.sh ./install_commercial.sh ``` ## UPDATE +proxy update use mirror to download, if your update has error with mirror, you can set an environment variable `UPDATE_MIRROR=false` +Windows: `set UPDATE_MIRROR=false` then `proxy update` +Linux: `export UPDATE_MIRROR=false` then `proxy update` ### Linux diff --git a/README_ZH.md b/README_ZH.md index fc8432c..e20a456 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -108,13 +108,13 @@ GoProxy是一款轻量级、功能强大、高性能的http代理、https代理 免费版执行这个: ```shell -curl -L https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/blob/master/install_auto.sh | bash +bash -c "$(curl -s -L https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/blob/master/install_auto.sh)" @ cn ``` 商业版执行这个: ```shell -curl -L https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/blob/master/install_auto_commercial.sh | bash +bash -c "$(curl -s -L https://mirrors.goproxyauth.com/https://github.com/snail007/goproxy/blob/master/install_auto_commercial.sh)" @ cn ``` 安装完成,配置目录是/etc/proxy,更详细的使用方法请参考上面的手册目录,进一步了解你想要使用的功能。 @@ -163,6 +163,9 @@ chmod +x install_commercial.sh ``` ## 升级更新 +更新默认使用镜像地址下载,如果使用镜像无法更新,可以设置环境变量:`UPDATE_MIRROR=false`,禁用镜像下载。 +Windows: 先执行 `set UPDATE_MIRROR=false` 然后执行 `proxy update` +Linux: 先执行 `export UPDATE_MIRROR=false` 然后执行 `proxy update` ### Linux 用`root`打开一个终端,如果proxy不再系统PATH里面,需要cd进入proxy目录执行`./proxy`。