zoukankan      html  css  js  c++  java
  • 搭建私有git仓库gogs

    安装 gogs

    下载

    gogs download

    安装

    1. 解压压缩包。
    2. 使用命令 cd 进入到刚刚创建的目录。
    3. 执行命令 ./gogs web,然后,就没有然后了。
    #后台运行
    $ nohup ./gogs web &
    

    安装mysql

    略过,也可以直接用sqlite3

    #新建库
    create database `gogs` default character set utf8 collate utf8_general_ci;
    #新建用户
    create user gogs identified by '123456';
    #授权
    grant all on gogs.* to gogs@'localhost' identified by '123456' with grant option;
    #刷新
    flush privileges;
    

    centos新建用户组

    $ sudo groupadd git   
    #创建git用户,分到git组中:
    $ sudo useradd -g git git
    #设置密码
    sudo passwd git
    #切换用户
    $ su git
    

    干掉gogs进程 用git用户跑起来

  • 相关阅读:
    简单题
    bzoj2131
    bzoj1706
    bzoj3531
    bzoj3744
    bzoj2724
    bzoj3343
    bzoj1005
    编程中、遇到问题、bug多思考
    线上系统奇怪问题总结,性能问题不能依赖经验
  • 原文地址:https://www.cnblogs.com/wilwei/p/10244644.html
Copyright © 2011-2022 走看看