| | |
| | | |
| | | //启动服务 |
| | | func StartServer(scriptPath string) { |
| | | fmt.Println("sh " + scriptPath + "/" + StartServerScript) |
| | | //fmt.Println("sh " + scriptPath + "/" + StartServerScript) |
| | | util.RunScript("sh " + scriptPath + "/" + StartServerScript) |
| | | } |
| | | |
| | | //停止服务 |
| | | func StopServer(scriptPath string) { |
| | | fmt.Println("sh " + scriptPath + StopServerScript) |
| | | util.RunScript("sh " + scriptPath + StopServerScript) |
| | | //fmt.Println("sh " + scriptPath + "/" + StopServerScript) |
| | | util.RunScript("sh " + scriptPath + "/" + StopServerScript) |
| | | } |
| | | |
| | | //根据搜索内容替换整行内容 |