这个周末好奇想搭建一个私有的Gitlab,以前折腾过一次。现在记录如下。

一、安装Ubuntu 16.04 LTS server amd64 到Virtual Box

二、安装gitlab服务器

按照官网的说明(Download GitLab Community Edition (CE))一步步操作即可。注意:使用中国镜像来下载,页面底部有说明。

图1 安装gitlab community版本的示意图

Gitlab管理命令

sudo gitlab-ctl restart
    sudo gitlab-ctl reconfigure
    sudo gitlab-ctl-rails console production 控制台,可以改密码设置admin用户等操作

设置一个用户为admin用户

user = User.find_by(email: 'admin@local.host')
    user.admin = true
    user.save

参考:

a. http://stackoverflow.com/questions/11761396/how-to-setup-admin-user-with-gitlab-with-ldap-authentication

b. http://docs.gitlab.com/ce/security/reset_root_password.html

三、设置gitlab page服务(failed)

1. Gitlab Runner:https://gitlab.com/gitlab-org/gitlab-ci-multi-runner

2. Install:Install using official GitLab repositories

参考:

a. Gitlab: https://about.gitlab.com/downloads/#ubuntu1604

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

最新文章

  1. css3之3d导航
  2. 【小白的CFD之旅】04 任务
  3. PLSQL开发笔记和小结(转载)
  4. jQuery中each的break和continue
  5. Cocos移植到Android的一些问题-SQLite3数据库移植问题
  6. weblogic目录结构
  7. Node.js学习 - Web Server
  8. .NET Core 1.1日期解析无APi、SQL Server数据转换JSON
  9. python的数据类型及运用
  10. Spark大型电商项目实战-及其改良之番外(1)-将spark前端页面效果高效拷贝至博客
  11. Centos7 安装 Redis
  12. Mysql+Keepalived双主热备高可用操作记录
  13. nginx的启动与停止
  14. sqli-labs(十)(过滤注释符)
  15. shiro中authc和user的权限区别
  16. linux od命令详解
  17. Cocoa 集合类型:NSPointerArray,NSMapTable,NSHashTable
  18. 【7】JMicro微服务-服务路由,负载均衡
  19. spring源码开发环境搭建
  20. 20155235 2016-2017-2 《Java程序设计》第9周学习总结

热门文章

  1. Scrum与高效能人士的执行4原则
  2. 新部署的linux web服务器error Host ‘*.*.*.*’ is not allowed to connect to this MySQL server
  3. 不用char*作为hash_map的key
  4. JS获取当前日期时间并定时刷新
  5. weblogic配置修改java代码后不需要重启热部署方式
  6. SlidingMenu源代码导入及错误分析和解决方法
  7. 设计师和开发人员更快完成工作需求的20个惊人的jqury插件教程(上)
  8. [Windows Azure] 使用 Windows Azure 快速搭建 Redis 服务器
  9. ACM Skiing问题
  10. [分享]CSS美化浏览器滚动条