摘要: 文章转自 快速开始 my.ini # possible values : production, development app_mode = development [paths] # Path to where grafana can store temp files, sessions, an 阅读全文
posted @ 2020-01-09 19:25 Binb 阅读(665) 评论(0) 推荐(0) 编辑
摘要: Tail Demo // tail.TailFile()函数开启goroutine去读取文件,通过channel格式的t.lines传递内容。 t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) if er 阅读全文
posted @ 2020-01-09 15:27 Binb 阅读(676) 评论(0) 推荐(0) 编辑