GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/group cmd/group/group.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/industry cmd/industry/main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/ministries cmd/ministries/main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/government cmd/government/main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/tagging cmd/tagging/main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/similarity cmd/similarity/main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o bin/target_http cmd/target/target_http/target_http.go
chmod +x target_http
nohup ./target_http > target_http.log 2>&1 &
nohup ./cct_index > cct_index.log 2>&1 &
crontab 每隔5分钟执行一次,但是第一次执行需要从0点开始
*/5 0 * * * /bin/sh test.sh
*/30 * * * * cd /home/chengtong && /home/chengtong/index24
*/15 20-22 * * * cd /home/chengtong && /home/chengtong/index
*/15 16-17 * * * cd /home/chengtong && /home/chengtong/index
*/15 1-2 * * * cd /home/chengtong && /home/chengtong/index
*/15 5-6 * * * cd /home/chengtong && /home/chengtong/index
*/15 16-17 * * * cd /home/chengtong && /home/chengtong/index