gogs哪里修改服务器配置,gogs配置及迁移

工作需要迁移gogs,粗略记下笔记

操作系统:CentOS Linux release 7.4.1708 (Core)

防火墙:关闭状态,如有需要开启默认的3000端口

一、配置

首先安装git

[root@host2 ~]# yum -y installgit

[root@host2~]# git --version

git version1.8.3.1[root@host2~]# adduser git

[root@host2~]# idgit

uid=1002(git) gid=1003(git) 组=1003(git)

[root@host2~]# mkdir /opt/env_gogs ;cd /opt/env_gogs  #上传gogs包到此文件下

[root@host2 env_gogs]#tar xf gogs_linux_amd64.tar.gz

[root@host2 env_gogs]#sugit

[git@host2 gogs]$ cd/opt/env_gogs/gogs

[git@host2 gogs]$ ./gogs web

使用浏览器访问http://服务器ip:3000即可打开Gogs的安装页面

安装页面配置:

6da93b2077a8aab5fce9299b91a33447.png

最上面有个选择数据库的,没有截图,我选的是

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值