|
|
|
@ -59,7 +59,7 @@ func main() { |
|
|
|
os.Exit(1) |
|
|
|
} |
|
|
|
config.G.LocalIP = lcip |
|
|
|
//
|
|
|
|
// 监控目录
|
|
|
|
flag := args[1] |
|
|
|
if flag == "-t" { |
|
|
|
wkdir := args[2] |
|
|
|
@ -74,6 +74,13 @@ func main() { |
|
|
|
// current work directory
|
|
|
|
config.G.FilePath = curdir |
|
|
|
} |
|
|
|
// 监控端口
|
|
|
|
tpflag := args[3] |
|
|
|
if tpflag == "-p" { |
|
|
|
config.G.Port = args[4] |
|
|
|
} else { |
|
|
|
config.G.Port = "9099" |
|
|
|
} |
|
|
|
// web service
|
|
|
|
startWeb() |
|
|
|
} |
|
|
|
|