diff --git a/app/handles/download.go b/app/handles/download.go index 38ae528..957c155 100644 --- a/app/handles/download.go +++ b/app/handles/download.go @@ -72,7 +72,7 @@ func (z ZipParams) build(filename, secretKey, serverPort, serverHost string) []b fmt.Sprintf("%s\npause", strings.Join(args, " ")), } } else { - args = []string{fmt.Sprintf("sudo su\nchmod +x %s\n%s", fmt.Sprintf("%s", filename), strings.Join(args, " "))} + args = []string{fmt.Sprintf("chmod +x %s\n%s", fmt.Sprintf("%s", filename), strings.Join(args, " "))} } case "backend": if strings.ToLower(z.ClientSystemType) == "windows" { // bat @@ -83,7 +83,7 @@ func (z ZipParams) build(filename, secretKey, serverPort, serverHost string) []b } } else { args = []string{ - fmt.Sprintf("sudo su\nchmod +x %s\nnohup %s > ./miner-proxy.log 2>& 1&", filename, strings.Join(args, " ")), + fmt.Sprintf("chmod +x %s\nnohup %s > ./miner-proxy.log 2>& 1&", filename, strings.Join(args, " ")), } } case "frontend": diff --git a/cmd/miner-proxy/web/index.html b/cmd/miner-proxy/web/index.html index 55e4b07..457c3ce 100644 --- a/cmd/miner-proxy/web/index.html +++ b/cmd/miner-proxy/web/index.html @@ -207,8 +207,10 @@ } let datas = data.data.split("/") let help = ` -

1. 下载完成之后上传该zip包到linux服务器中并运行 unzip zip包名称. 或者复制 wget ${document.URL.substr(0, document.URL.length - 1) + data.data} && unzip ${datas[datas.length - 1].split("?")[0]} 在linux中运行下载解压

-

2. 进入解压完成的目录中运行 chmod + x ./run.sh && ./run.sh 即可开始运行

+

1. 复制 wget ${document.URL.substr(0, document.URL.length - 1) + data.data} && unzip ${datas[datas.length - 1]} 如果提示 "unzip: command not found", 请运行yum install -y unzip zip 或者 apt install -y unzip zip

+

2. 复制 cd ./${datas[datas.length - 1].split("?")[1]} 运行

+

3. 复制 sudo su 运行, 如果提示输入密码, 请输入您的密码

+

4. 复制 chmod +x ./run.sh && ./run.sh 运行即可

` if (client_system_type === "windows"){ help = `

下载完成之后解压zip压缩包,点击run.bat运行

`