diff --git a/README.md b/README.md index 9dfe537..8623c59 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,24 @@ https://zjcqoo.github.io/-----https://www.google.com (由于访问量较大,目前限制 Referer 只允许从 GitHub 访问) -# 安装 +# 一键安装 + +```sh +curl https://raw.githubusercontent.com/EtherDream/jsproxy/master/i.sh | sh +``` + +(暂时只支持 Linux x64 版本。如果安装失败,尝试手动安装) + + +# 手动安装 新建一个 `jsproxy:nobody` 用户,在其主目录安装 nginx: ```bash groupadd nobody useradd jsproxy -g nobody --create-home -su jsproxy +su - jsproxy -cd ~ git clone --depth=1 https://github.com/EtherDream/jsproxy.git server cd server diff --git a/i.sh b/i.sh new file mode 100644 index 0000000..0f5fe55 --- /dev/null +++ b/i.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +SRC=https://raw.githubusercontent.com/EtherDream/jsproxy-bin/master/setup.sh +DST=/home/jsproxy/setup.sh + +groupadd nobody +useradd jsproxy -g nobody --create-home + +echo "download main script ..." +curl -s $SRC -o $DST + +chmod +x $DST +su - jsproxy -c $DST \ No newline at end of file