Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
suggest-task
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田川
suggest-task
Commits
880cd50d
Commit
880cd50d
authored
May 11, 2021
by
zhaoyanchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加readme 文件
parent
436392fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
readme.md
readme.md
+24
-0
No files found.
readme.md
0 → 100644
View file @
880cd50d
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
\s
rc
\g
ithub.com
\l
iuzl
\g
occ 中的config 和 dictionary 文件夹。
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment