Commit 880cd50d by zhaoyanchao

添加readme 文件

parent 436392fc
Suggest 离线任务
读取mysql 表中的用户历史搜索词,根据pv,uv, 品牌,品类等指标打分, 写入es 索引中。
1. 环境搭建
下载go 环境。
设置GOPATH, GOPATH 目录下需要有项目中GOPATH中的库,可以尝试copy 过去
2. 编译部署
go 项目编译:
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build suggest-task.go suggest-task-dependency.go
将编译出的suggest-task 文件放置linux 机器上,更改为可执行权限即可执行
3. 运行
运行时可能报错。 处理:
在linux 下 在 /usr/local/share/gocc 目录, 要添加 config 和dictionary 目录,可拷贝项目下 GOPATH\src\github.com\liuzl\gocc 中的config 和 dictionary 文件夹。
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment