基于beego的简易blog系统
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
controllers
models
static
util
views
.gitignore
README.md 修正 May 26, 2015
goblog.sql 更新数据库结构 Nov 1, 2015
main.go

README.md

#GoBlog

基于Go语言和beego框架的简易博客系统

开发中,数据表结构随时可能调整...

演示地址:

http://www.lisijie.org/

##编译安装说明:

设置GOPATH(安装目录)

$ export GOPATH=/path/to/goblog
$ cd /path/to/goblog

获取源代码,下载完成后会自动编译为goblog可执行文件

$ go get github.com/lisijie/goblog

修改数据库配置

$ cd src
$ vim github.com/lisijie/goblog/conf/app.conf

appname = goblog
httpport = 8080
runmode = dev
dbhost = localhost 
dbport = 3306
dbuser = root
dbpassword = 123456
dbname = goblog
dbprefix = tb_

导入MySQL

$ mysql -u username -p -D goblog < goblog.sql

运行

$ ./goblog
或
$ nohup ./goblog 2>&1 > goblog.log &
设为后台运行

访问:

http://localhost:8080

后台地址:

http://localhost:8080/admin

帐号:admin 密码:admin888