Giter Site home page Giter Site logo

pixiublog's Introduction

pixiublog

一、说明

pixiublog是一款轻量级博客系统,go语言开发,部署超级简单,资源消耗少,运行稳定。

使用的网站

使用的框架

  • beego
  • bee
  • layui
  • bootstrap

二、安装方法

方法一、 编译安装

mac

  • 运行 ./package.sh -a amd64 -p darwin -v v1.x.0

linux

  • 运行 ./package.sh -a 386 -p linux -v v1.x.0
  • 运行 ./package.sh -a amd64 -p linux -v v1.x.0

windows

  • 运行 ./package.sh -a amd64 -p windows -v v1.x.0

方法二、直接使用

linux

mac

windows

访问

  • 前台访问:http://your_host:port
  • 后台访问:http://your_host:port/admin
  • 用户名:admin 密码:123456

配置文件

根据自己的情况修改数据库和启动端口

appname = pixiublog
httpport = 8080
runmode = dev

version= V1.0

# 允许同时运行的任务数
jobs.pool = 1000

# 站点名称
site.name = 博客后台管理器

#通知方式 0=邮件,1=信息,2=钉钉,3=微信
notify.type = 0

# 数据库配置
db.host = 127.0.0.1
db.user = root
db.password = "123456"
db.port = 3306
db.name = pixiublog
db.prefix = 
db.timezone = Asia/Shanghai

# 邮件通知配置
email.host = smtp.xxx.com
email.port = 25
email.from = [email protected]
email.user = [email protected]
email.password = "xxxxxx"
email.pool = 10

# 短信通知方式配置
msg.url = http://xxx.com/api/tools/send_sms
msg.pool = 10

# 钉钉通知配置
dingtalk.url = "https://oapi.dingtalk.com/robot/send?access_token=%s"
dingtalk.pool = 10

# 微信通知方式配置
wechat.url = http://xx.com/api/tools/send_wechat
wechat.pool = 10

三、编译安装-可能会遇到的问题


go build 时遇到以下错误: jobs/job.go:19:2: cannot find package "golang.org/x/crypto/ssh" in any of:

需要 git clone https://github.com/golang/crypto.git 并拷贝到 $GOPATH/src/golang.org/x/ 下就OK

git clone https://github.com/golang/crypto.git $GOPATH/src/golang.org/x/crypto

四、Docker

本地编译好的二进制文件放在根目录下执行下面的命令即可拥有

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
docker-compose up -d

#日志查看
docker-compose logs -f web

五、其它

生成代码命令

bee generate appcode -tables="sys_config" -driver=mysql -conn="root:123456@tcp(127.0.0.1:3306)/pixiublog" -level=3

pixiublog's People

Contributors

leonardodacn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.