• Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

基于beego的简易blog系统

#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