zoukankan      html  css  js  c++  java
  • 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。提供之前创建的密码并登录,登录后可以更改用户名

  • 相关阅读:
    Docker_使用Rancher管理docker(7)
    Docker_部署本地镜像仓库(6)
    Python_多任务:进程、线程、协程
    JMeter_实现算法加密
    Docker_创建自定义镜像(5)
    Fiddler Everywhere简单使用
    Docker_容器(container)使用(4)
    Docker_镜像(image)使用(3)
    C#读写锁ReaderWriterLockSlim的使用
    C++二级指针第三种内存模型
  • 原文地址:https://www.cnblogs.com/wanglan/p/7462191.html
Copyright © 2011-2022 走看看