• gitlab安装(centos 8)



    1、安装依赖:sudo dnf install policycoreutils openssh-server postfix
    2、下载gitlab:wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-13.1.1-ce.0.el8.x86_64.rpm
    其它版本可通过以下链接查找下载:
    Gitlab官网:https://packages.gitlab.com/gitlab/gitlab-ce/
    清华大学镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/
    3、安装gitlab:rpm -i gitlab-ce-13.1.1-ce.0.el8.x86_64.rpm

    4、修改配置(对应的端口需授权开放):vim /etc/gitlab/gitlab.rb
    unicorn['port'] = 对应的端口
    external_url "http://ip或者域名:port"

    5、编译配置:gitlab-ctl reconfigure
    6、启动Gilab:gitlab-ctl start

    /** 常用命令 **/
    #启动所有 gitlab 组件:gitlab-ctl start
    #停止所有 gitlab 组件:gitlab-ctl stop
    #重启所有 gitlab 组件:gitlab-ctl restart

    #修改 gitlab 配置:vim /etc/gitlab/gitlab.rb
    #编译 gitlab 配置:gitlab-ctl reconfigure

    #查看日志:gitlab-ctl tail
    #查看状态:gitlab-ctl status
    #检查gitlab:gitlab-rake gitlab:check SANITIZE=true --trace
    #查看版本:cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

        千万不要试图去研究 研究了很久都整不明白的东西,或许是层次不到,境界未到,也或许是从未在实际的应用场景接触过,这种情况下去研究,只会事倍功半,徒劳一番罢了。能做的就是不断的沉淀知识,保持一颗积极向上的学习心态,相信终有一天所有的困难都会迎刃而解。
  • 相关阅读:
    s3fs 挂载minio为本地文件系统
    P5787 线段树分治
    P5494 线段树分裂
    P1552 [APIO2012]派遣
    CF600E Lomsat gelral(线段树合并)
    P5283 异或粽子
    P4735 最大异或和(可持久化 trie)
    P3960 列队
    bzoj4316 小C的独立集
    P5021 赛道修建
  • 原文地址:https://www.cnblogs.com/54hsh/p/14578451.html
Copyright © 2020-2023  润新知