工作需要迁移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的安装页面
安装页面配置:
最上面有个选择数据库的,没有截图,我选的