zoukankan      html  css  js  c++  java
  • gitlab安装

    根据官方文档安装:https://www.gitlab.com.cn/installation/#centos-6

    centos6:

    1、没有安装lokkit,yum search lokkit后安装lokkit

    sudo yum install -y curl policycoreutils-python openssh-server cronie
    sudo lokkit -s http -s ssh
    

    2、安装邮件客户端软件postfix

    sudo yum install postfix
    sudo service postfix start
    sudo chkconfig postfix on
    

    3、设置yum的仓库

    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
    

    4、真正开始安装gitlab

    sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ee

    5、由于网络原因,我这完成了上面的1、2步,然后使用gitlba清华镜像安装

    https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

    6、然后参考https://yq.aliyun.com/articles/74395进行配置启动

    sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;external_url 'http://10.7.9.21'这条配置是web访问的url
    sudo gitlab-ctl reconfigure        # 然后启动服务;会安装一段时间
    其他操作
    sudo gitlab-ctl start # 启动所有 gitlab 组件; sudo gitlab-ctl stop # 停止所有 gitlab 组件; sudo gitlab-ctl restart # 重启所有 gitlab 组件; sudo gitlab-ctl status # 查看服务状态; gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab; sudo gitlab-ctl tail # 查看日志;

    7、浏览器访问 external_url,首次登录就会让你修改默认帐号root的密码

    8、剩下的就是和github一样进行操作即可


    参考:
    1、https://yq.aliyun.com/articles/74395
    2、https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
    3、https://www.gitlab.com.cn/installation/#centos-6
  • 相关阅读:
    MVC模式在Java Web应用程序中的实例分析
    MVC模式在Java Web应用程序中的实现
    设计模式简析
    《大型网站技术架构:核心原理与技术分析》5,6,7章简析
    spring引入HikariCP连接池
    sring引入mybatis
    spring中通过JNDI、DBCP、C3P0配置数据源
    springMVC框架搭建
    Timer定时执行
    SQL大杂烩
  • 原文地址:https://www.cnblogs.com/shengulong/p/8933264.html
Copyright © 2011-2022 走看看