美文网首页
Centos6.5下安装Gogs Git私服

Centos6.5下安装Gogs Git私服

作者: jahem | 来源:发表于2021-04-22 09:56 被阅读0次

    安装mysql数据库

    https://www.jianshu.com/writer#/notebooks/11015909/notes/18485740

    安装Git服务端

    yum install git -y

    安装Golang语言

    https://www.jianshu.com/writer#/notebooks/11015909/notes/47842460
    建议使用源码安装,yum安装CentOS默认不支持;

    安装Gogs服务端,选择对应的Gogs版本,

    wget https://dl.gogs.io/0.11.4/linux_amd64.tar.gz
    下载软件包

    tar -zxf linux_amd64.tar.gz; mv gogs /gogs
    解压

    useradd git
    chown -R git:git /gogs
    mkdir /gogs-repositories
    chown -R git:git /gogs-repositories
    添加git用户

    su git
    切换用户

    /gogs/gogs web &
    启动gogs

    lsof -i:3102
    kill -9 进程PID
    停止gogs

    vim gogspath/custom/conf/app.ini
    配置文件

    相关文章

      网友评论

          本文标题:Centos6.5下安装Gogs Git私服

          本文链接:https://www.haomeiwen.com/subject/xwtbtctx.html