ls0398 发表于 2018-9-16 11:28:45

ubuntu系统gogs搭建git服务器

有备份还原功能gogs安装
  useradd git #建立git用户
  su - git
  wget https://dl.gogs.io/0.11.34/linux_amd64.tar.gz
  tar zxvf linux_amd64.tar.gz
  mkdir -p gogs/custom/conf
  touch gogs/custom/conf/app.ini
  cd gogs
  ./gogs web
  http://ip地址:3000打开安装界面
gogs升级
  su - git
  rm -rf gogs/templates
  wget 最新的gogs版本
  解压即可
gogs备份
  su - git
  cd gogs
  ./gogs backup
gogs还原
  su - git
  cd gogs
  ./gogs restore --from="备份文件"

页: [1]
查看完整版本: ubuntu系统gogs搭建git服务器