具体报错信息如下:
github.com/fecshopsoft/fec-go/helper/ip.go:17: open /www/test/ip/GeoLite2-City_20180327/GeoLite2-City.mmdb: no such file or directory
1、下载http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz 2、创建目录/www/test/ip/GeoLite2-City_20180327/ 3、把下载文件解压后里面的GeoLite2-City.mmdb放到/www/test/ip/GeoLite2-City_20180327/目录
恩,github也有,参看:http://www.fecshop.com/topic/1427