From d2ad04b1c747af5cc9e9b5ff5587aeaa558ed5ab Mon Sep 17 00:00:00 2001 From: juewuy Date: Fri, 20 Jan 2023 15:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=BA=90=E5=8F=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_CN.md | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/README_CN.md b/README_CN.md index d716a59..9d5271c 100644 --- a/README_CN.md +++ b/README_CN.md @@ -42,59 +42,67 @@ ~使用SSH连接工具(如putty,JuiceSSH,系统自带终端等)路由器或Linux设备的SSH管理界面或终端界面,并切换到root用户
~确认设备已经安装curl或者wget下载工具 -~之后在SSH界面执行如下安装命令,并按照后续提示完成安装
+~之后在SSH界面执行目标设备对应的安装命令,并按照后续提示完成安装
(**如无法连接或出现SSL连接错误,请尝试更换各种不同的安装源!**)
-~**使用curl安装**:
+~**标准Linux设备安装:**
+ +```shell +sudo -i #切换到root用户,如果需要密码,请输入密码 +export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null +``` +或者 +```shell +sudo -i #切换到root用户,如果需要密码,请输入密码 +export url='https://gh.shellclash.cf/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null +``` + +~**路由设备使用curl安装**:
```shell #GitHub源(可能需要代理) export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null ``` - +或者 ```shell #jsDelivrCDN源 export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null ``` - +或者 ```shell #作者私人源 -export url='https://shellclash.cf' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null +export url='https://gh.shellclash.cf/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null ``` -~**使用wget安装**:
+~**路由设备使用wget安装**:
```Shell #GitHub源(可能需要代理) export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` - +或者 ```shell #jsDelivrCDN源 export url='https://fastly.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` -~**使用低版本wget(提示不支持https)安装**:
+~**老旧设备使用低版本wget安装**:
```Shell -#作者私人http源 -export url='http://shellclash.cf/' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null -``` - -~**非root用户安装后**请额外执行以下命令以读取环境变量:
- -```Shell -source ~/.bashrc &> /dev/null +#作者私人http内测源 +export url='http://test.shellclash.cf' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null ``` ~安装完成管理脚本后,执行如下命令以**运行管理脚本**
```Shell -clash #正常模式运行 +clash #进入对话脚本 clash -h #脚本帮助及说明 clash -u #卸载脚本 clash -t #测试模式运行 +clash -s start #启动服务 +clash -s stop #停止服务 ``` ~**DOCKER环境下安装:**