Go爬取豆瓣电影
- Mysql
- Redis
Create a go database and import SQL
创建一个 test库,然后导入sql,创建表!
You should modify conf/app.conf
[database]
Type = mysql
User = root
Password =123
Host = 127.0.0.1:3306
Name = test
[redis]
Addr=127.0.0.1:6379
Password=
yum install go -y
export GOPROXY=https://goproxy.io
go get github.com/jcops/crawl_douban_movie
cd $GOPATH/src/github.com/jcops/crawl_douban_movie
go build

