Skip to content

lisijie/goblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

基于beego的简易blog系统

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •