mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~优化安装命令,兼容dash
This commit is contained in:
18
README_CN.md
18
README_CN.md
@@ -55,48 +55,48 @@
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo -i #切换到root用户,如果需要密码,请输入密码
|
sudo -i #切换到root用户,如果需要密码,请输入密码
|
||||||
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
```shell
|
```shell
|
||||||
sudo -i #切换到root用户,如果需要密码,请输入密码
|
sudo -i #切换到root用户,如果需要密码,请输入密码
|
||||||
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
~**路由设备使用curl安装**:<br>
|
~**路由设备使用curl安装**:<br>
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
#GitHub源(可能需要代理)
|
#GitHub源(可能需要代理)
|
||||||
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
```shell
|
```shell
|
||||||
#jsDelivrCDN源
|
#jsDelivrCDN源
|
||||||
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
```shell
|
```shell
|
||||||
#作者私人源
|
#作者私人源
|
||||||
export url='https://gh.jwsc.eu.org/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
export url='https://gh.jwsc.eu.org/master' && sh -c "$(curl -kfsSl $url/install.sh)" && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
~**路由设备使用wget安装**:<br>
|
~**路由设备使用wget安装**:<br>
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
#GitHub源(可能需要代理)
|
#GitHub源(可能需要代理)
|
||||||
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='https://raw.githubusercontent.com/juewuy/ShellCrash/master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
```shell
|
```shell
|
||||||
#jsDelivrCDN源
|
#jsDelivrCDN源
|
||||||
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
~**老旧设备使用低版本wge安装**:<br>
|
~**老旧设备使用低版本wge安装**:<br>
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
#作者私人http内测源
|
#作者私人http内测源
|
||||||
export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
##### ~**虚拟机安装:**<br>
|
##### ~**虚拟机安装:**<br>
|
||||||
@@ -107,7 +107,7 @@ export url='http://t.jwsc.eu.org' && wget -q -O /tmp/install.sh $url/install.sh
|
|||||||
#安装必要依赖
|
#安装必要依赖
|
||||||
apk add --no-cache wget openrc ca-certificates tzdata nftables iproute2 dcron
|
apk add --no-cache wget openrc ca-certificates tzdata nftables iproute2 dcron
|
||||||
#执行安装命令
|
#执行安装命令
|
||||||
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
export url='https://testingcf.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && . /etc/profile &> /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
##### ~Docker安装:<br>
|
##### ~Docker安装:<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user