一键安装脚本测试

This commit is contained in:
zjcqoo 2019-05-14 17:41:38 +08:00
commit f5f6699880
2 changed files with 24 additions and 3 deletions

View File

@ -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

13
i.sh Normal file
View File

@ -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