ubuntu 16.04
apt install mysql redis libmysqlclient-dev python make g++
安装golang,node
go get github.com/astaxie/beego
go get -u github.com/beego/bee
go get github.com/garyburd/redigo/redis
go get github.com/golang/freetype
go get github.com/dgrijalva/jwt-go
go get github.com/spf13/cast
go get github.com/ethereum/go-ethereum/common
go get github.com/go-sql-driver/mysql
go get github.com/satori/go.uuid
cd front
npm install
npm start
mkdir -p /var/upload/uphp/gcexserver
mkdir /var/log/kuangchi
create database gcexserver default character set utf8;
bee run
初始化超级管理员:
insert into admin(username, password, salt, super, create_time, last_time) value("admin", "3eee0d5225c27509342f9a1e3a11de59237827c15befcfc8085ac61abd3ba3e6bef2635ad31c0cbd822f328626d2ad359ed8", "iFkzSESAgZ", 1, NOW(), NOW());
username: admin
password: 123456
/kc/admin-front/