搭建Gitlab
这个周末好奇想搭建一个私有的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
参考:
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/
最新文章
- css3之3d导航
- 【小白的CFD之旅】04 任务
- PLSQL开发笔记和小结(转载)
- jQuery中each的break和continue
- Cocos移植到Android的一些问题-SQLite3数据库移植问题
- weblogic目录结构
- Node.js学习 - Web Server
- .NET Core 1.1日期解析无APi、SQL Server数据转换JSON
- python的数据类型及运用
- Spark大型电商项目实战-及其改良之番外(1)-将spark前端页面效果高效拷贝至博客
- Centos7 安装 Redis
- Mysql+Keepalived双主热备高可用操作记录
- nginx的启动与停止
- sqli-labs(十)(过滤注释符)
- shiro中authc和user的权限区别
- linux od命令详解
- Cocoa 集合类型:NSPointerArray,NSMapTable,NSHashTable
- 【7】JMicro微服务-服务路由,负载均衡
- spring源码开发环境搭建
- 20155235 2016-2017-2 《Java程序设计》第9周学习总结
热门文章
- Scrum与高效能人士的执行4原则
- 新部署的linux web服务器error Host ‘*.*.*.*’ is not allowed to connect to this MySQL server
- 不用char*作为hash_map的key
- JS获取当前日期时间并定时刷新
- weblogic配置修改java代码后不需要重启热部署方式
- SlidingMenu源代码导入及错误分析和解决方法
- 设计师和开发人员更快完成工作需求的20个惊人的jqury插件教程(上)
- [Windows Azure] 使用 Windows Azure 快速搭建 Redis 服务器
- ACM Skiing问题
- [分享]CSS美化浏览器滚动条