فهرست منبع

一键安装脚本测试

zjcqoo 6 سال پیش
والد
کامیت
f5f6699880
2فایلهای تغییر یافته به همراه24 افزوده شده و 3 حذف شده
  1. 11 3
      README.md
  2. 13 0
      i.sh

+ 11 - 3
README.md

@@ -5,16 +5,24 @@ https://zjcqoo.github.io/-----https://www.google.com
 (由于访问量较大,目前限制 Referer 只允许从 GitHub 访问)
 (由于访问量较大,目前限制 Referer 只允许从 GitHub 访问)
 
 
 
 
-# 安装
+# 一键安装
+
+```sh
+curl https://raw.githubusercontent.com/EtherDream/jsproxy/master/i.sh | sh
+```
+
+(暂时只支持 Linux x64 版本。如果安装失败,尝试手动安装)
+
+
+# 手动安装
 
 
 新建一个 `jsproxy:nobody` 用户,在其主目录安装 nginx:
 新建一个 `jsproxy:nobody` 用户,在其主目录安装 nginx:
 
 
 ```bash
 ```bash
 groupadd nobody
 groupadd nobody
 useradd jsproxy -g nobody --create-home
 useradd jsproxy -g nobody --create-home
-su jsproxy
+su - jsproxy
 
 
-cd ~
 git clone --depth=1 https://github.com/EtherDream/jsproxy.git server
 git clone --depth=1 https://github.com/EtherDream/jsproxy.git server
 
 
 cd server
 cd server

+ 13 - 0
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