• GitLab 安装(推荐)


    参考文档:

    https://about.gitlab.com/installation/#centos-7

    基础环境

    [root@node1 ~]# uname -r
    3.10.0-229.el7.x86_64
    [root@node1 ~]# uname -a
    Linux node1 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    关闭防火墙

    [root@node1 ~]# systemctl stop firewalld

    关闭SElinux

    [root@node1 ~]# vim /etc/selinux/config 
    SELINUX=disabled     #改为 disabled 

    [root@node1 ~]# getenforce Disabled #查看SElinux状态

    主机IP

    10.0.0.20

    安装并配置必要的依赖关系

    在CentOS上,以下命令也将在系统防火墙中打开HTTP和SSH访问

    [root@node1 ~]#  yum install -y curl policycoreutils openssh-server openssh-clients
    [root@node1 ~]# systemctl enable sshd
    [root@node1 ~]# systemctl start sshd
    [root@node1 ~]# firewall-cmd --permanent --add-service=http
    如果开放了防火墙重新加载防火墙
    [root@node1 ~]#systemctl reload firewalld

    添加GitLab包服务器并安装包

    [root@node1 ~]# wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.2-ce.0.el7.x86_64.rpm
    [root@node1 ~]# rpm -ivh gitlab-ce-9.5.2-ce.0.el7.x86_64.rpm 

    配置并启动GitLab

    [root@node1 ~]# gitlab-ctl reconfigure  # 编译配置
    [root@node1
    ~]# gitlab-ctl start [root@node1 ~]# gitlab-ctl status

    通过浏览器访问

    访问服务器IP地址:10.0.0.20

     在第一次访问时,将被重定向到密码重置屏幕,以提供初始管理员帐户的密码。输入您想要的密码,将被重定向回登录屏幕。

     默认帐户的用户名是root。提供之前创建的密码并登录,登录后可以更改用户名

  • 相关阅读:
    Python数据类型之列表
    Python数据类型之字符串
    《Python基础篇》之初识Python一
    Python运算符及案例
    linux之50条命令详解
    Python环境安装以及简单案例
    Java Date类的使用总结
    Java基础之Object类
    static关键字的内存分析
    Java基础之关键字static
  • 原文地址:https://www.cnblogs.com/wanglan/p/7462191.html
Copyright © 2020-2023  润新知