ModuleAB:基于beego框架开发的阿里云备份/归档解决方案

ModuleAB 第一个正式版本发布了,ModuleAB 是阿里云备份/归档解决方案。

作者介绍:

TonyChyi

项目托管:

环境要求:

  1. bower >= 1.7.6
  2. go >= 1.6
  3. beego framework >= 1.6.1
  4. redis >= 3.0.0
  5. mysql >= 5.6

服务端构建:

mkdir -p project/src
cd project/src
git clone --recursive https://github.com/ProjectModu ... erver moduleab_server
cd moduleab_server
go get -v
go get github.com/beego/bee
export PATH="$GOPATH/bin:$PATH"
make  # you will get 'moduleab_agent.tar.gz'

客户端构建:

mkdir -p project/src
cd project/src
git clone --recursive https://github.com/ProjectModu ... Agent moduleab_agent
cd moduleab_agent
go get -v
make  # you will get 'moduleab_agent.tar.gz'

PS: Then use the moduleab_server.tar.gz and moduleab_agent.tar.gz to deploy anywhere you want.(然后用moduleab_server.tar.gz、moduleab_agent.tar.gz部署到任何你想要的位置。)

服务端配置:

appname = moduleab_server
httpport = 7001
# run mode has following options:
# dev: development mode
# deb: debug mode, log will be HUGE!
# initdb: create data in database, DONT USE if you already have data in database.
# proc: production mode.
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = false

EnableAdmin = false
AdminHttpAddr = "localhost"
AdminHttpPort = 8088

sessionon = true

loginkey = 61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o

logFile = "logs/moduleab_server.log"
pidFile = "logs/moduleab_server.pid"

[database]
mysqluser = "ModulesAB"
mysqlpass = "ModulesAB"
mysqlurl = "127.0.0.1:3306"
mysqldb   = "ModuleAB"
mysqlprefex = ""

[aliapi]
apikey= "TestAbcd" # Ali api key
secret="TestAAA"   # Ali api secret
oasport=80
oasusessl=false

[redis]
host = "127.0.0.1:6379"
password = ""
key = "ModuleAB"

[websocket]
timeout=10
pingperiod=5

# policyrun use cron-like syntax: "s m h dom mon dow"
[misc]
checkoasjobperiod=10
policyrun="0 * * * * 1"

客户端配置:

server=http://localhost:7001
# you need to set this with the conf on server.
loginkey=guess?
# loglevel might be
# debug, info, warn, error, fatal
loglevel=debug
uploadthreads=5
pidfile=moduleab.pid

本次改动如下:

  1. 客户端(Agent)的运行状态可以在服务端显示了
  2. 所有的可执行文件实现守护进程,自动运行于后台
  3. 客户端新增低内存模式,可运行于内存小于 1G 的机器
  4. 修复不能自动释放 TCP 连接的问题
  5. 修复当上传的文件带有后缀空格时引发阿里云 OSS 错误

问题反馈:

https://github.com/ProjectModuleAngelaBaby/ProjectModuleAB_Server/issues

3 个评论

赞,基于beego的应用越来越多了
赞 !!!!!!
赞 !!

要回复文章请先登录注册