Skip to content
This repository has been archived by the owner on May 6, 2023. It is now read-only.

Commit

Permalink
增加详细的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
perrornet committed Feb 25, 2022
1 parent 2da3387 commit 80e12c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/handles/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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":
Expand Down
6 changes: 4 additions & 2 deletions cmd/miner-proxy/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@
}
let datas = data.data.split("/")
let help = `
<p>1. 下载完成之后上传该zip包到linux服务器中并运行 <code>unzip zip包名称</code>. 或者复制 <code>wget ${document.URL.substr(0, document.URL.length - 1) + data.data} && unzip ${datas[datas.length - 1].split("?")[0]}</code> 在linux中运行下载解压</p>
<p>2. 进入解压完成的目录中运行 <code>chmod + x ./run.sh && ./run.sh</code> 即可开始运行</p>
<p>1. 复制 <code>wget ${document.URL.substr(0, document.URL.length - 1) + data.data} && unzip ${datas[datas.length - 1]}</code> 如果提示 "unzip: command not found", 请运行<code>yum install -y unzip zip</code> 或者 <code>apt install -y unzip zip</code></p>
<p>2. 复制 <code>cd ./${datas[datas.length - 1].split("?")[1]}</code> 运行</p>
<p>3. 复制 <code>sudo su</code> 运行, 如果提示输入密码, 请输入您的密码</p>
<p>4. 复制 <code>chmod +x ./run.sh && ./run.sh</code> 运行即可</p>
`
if (client_system_type === "windows"){
help = `<p>下载完成之后解压zip压缩包,点击run.bat运行</p>`
Expand Down

0 comments on commit 80e12c0

Please sign in to comment.