From 47a42b7a641fcd36b4d839b92fbfaabda78ed28f Mon Sep 17 00:00:00 2001 From: juewuy Date: Fri, 12 Jan 2024 21:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E4=BF=AE=E6=94=B9=20=20=20=20=20=20?= =?UTF-8?q?=20=20README=5FCN.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_CN.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README_CN.md b/README_CN.md index 25be4fd..6f11848 100644 --- a/README_CN.md +++ b/README_CN.md @@ -101,9 +101,26 @@ export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q 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 ``` -~**DOCKER环境下安装:**
+~**虚拟机/Docker环境安装:**
+ +虚拟机或Docker环境推荐使用Alpine镜像安装
+ +这里以Docker为例(其他虚拟机请自行查找安装Alpine镜像安装教程)
+ +```shell +#注意,以下命令请分步执行! +#Docker一键启动Alpine镜像 +docker run -d --name ShellCrash alpine sleep infinity +#进入容器内sh环境 +docker exec -it ShellCrash sh +#安装必要依赖 +apk add curl +apk add nftables +#执行安装命令 +export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null +``` + -请参考 [ShellCrash_docker 一键脚本和镜像](https://github.com/echvoyager/shellCrash_docker) ### **本地安装:**