Gitlab组件

[root@master tools]# gitlab-ctl status    #检查服务状态
run: gitaly: (pid 26704) 2201s; run: log: (pid 25672) 2576s
run: gitlab-monitor: (pid 26715) 2201s; run: log: (pid 25775) 2569s #
run: gitlab-workhorse: (pid 26724) 2201s; run: log: (pid 25571) 2595s #轻量级的反向代理服务器
run: logrotate: (pid 26733) 2200s; run: log: (pid 25608) 2582s #用于处理日志.
run: nginx: (pid 26740) 2200s; run: log: (pid 25590) 2588s #作为静态web资源服务器的
run: node-exporter: (pid 26746) 2199s; run: log: (pid 25719) 2575s
run: postgres-exporter: (pid 26752) 2199s; run: log: (pid 25829) 2561s
run: postgresql: (pid 26761) 2198s; run: log: (pid 25350) 2639s
run: prometheus: (pid 26804) 2198s; run: log: (pid 25810) 2562s
run: redis: (pid 26813) 2198s; run: log: (pid 25278) 2645s
run: redis-exporter: (pid 26817) 2197s; run: log: (pid 25789) 2568s
run: sidekiq: (pid 26831) 2195s; run: log: (pid 25553) 2601s
run: unicorn: (pid 26855) 2194s; run: log: (pid 25515) 2603s

Gitlab工作流程

gitlab基础命令

gitlab-ctl tail       #查看gitlab日志.
gitlab-ctl reconfigure #重新配置gitlab
gitlab-ctl restart #重启所有gitlab服务,gitlab-ctl restart [服务名] 重启指定服务.
gitlab-ctl stop #停止所有gitlab服务,gitlab-ctl 停止 [服务名] 停止指定服务.
gitlab-ctl status #查看所有服务状态, gitlab-ctl status [服务名] 查看指定服务状态

Gitlab日志

gitlab默认日志路径:  /var/log/gitlab

[root@master gitlab]# ll /var/log/gitlab/
total 0
drwx------ 2 git root 95 Dec 17 18:21 gitaly
drwx------ 2 git root 95 Dec 17 18:18 gitlab-monitor
drwx------ 2 git root 188 Dec 16 01:57 gitlab-rails
drwx------ 2 git root 30 Dec 16 01:57 gitlab-shell
drwx------ 2 git root 95 Dec 17 18:28 gitlab-workhorse
drwx------ 2 root root 95 Dec 17 18:21 logrotate
drwxr-x--- 2 root gitlab-www 131 Dec 16 01:58 nginx
drwx------ 2 gitlab-prometheus root 95 Dec 17 18:21 node-exporter
drwx------ 2 gitlab-psql root 95 Dec 17 18:21 postgres-exporter
drwx------ 2 gitlab-psql root 95 Dec 17 18:21 postgresql
drwx------ 2 gitlab-prometheus root 95 Dec 17 18:20 prometheus
drwxr-xr-x 2 root root 28 Dec 16 01:56 reconfigure
drwx------ 2 gitlab-redis root 95 Dec 17 18:18 redis
drwx------ 2 gitlab-redis root 95 Dec 17 18:21 redis-exporter
drwx------ 2 git root 95 Dec 17 18:19 sidekiq
drwx------ 2 git root 147 Dec 17 18:22 unicorn #综合日志查看:
gitlab-ctl tail
gitlab-ctl tail nginx #只查看nginx日志.

Gitlab目录

#gitlab库的默认存储目录:
/var/opt/gitlab/git-data/repositories/ #gitlab默认日志路径: /var/log/gitlab/
#该目录存储了gitlab组件产生的日志
[root@master gitlab]# ll /var/log/gitlab/
total 0
drwx------ 2 git root 95 Dec 17 18:21 gitaly
drwx------ 2 git root 95 Dec 17 18:18 gitlab-monitor
drwx------ 2 git root 188 Dec 16 01:57 gitlab-rails
drwx------ 2 git root 30 Dec 16 01:57 gitlab-shell
drwx------ 2 git root 95 Dec 17 18:28 gitlab-workhorse
drwx------ 2 root root 95 Dec 17 18:21 logrotate
drwxr-x--- 2 root gitlab-www 131 Dec 16 01:58 nginx
drwx------ 2 gitlab-prometheus root 95 Dec 17 18:21 node-exporter
drwx------ 2 gitlab-psql root 95 Dec 17 18:21 postgres-exporter
drwx------ 2 gitlab-psql root 95 Dec 17 18:21 postgresql
drwx------ 2 gitlab-prometheus root 95 Dec 17 18:20 prometheus
drwxr-xr-x 2 root root 28 Dec 16 01:56 reconfigure
drwx------ 2 gitlab-redis root 95 Dec 17 18:18 redis
drwx------ 2 gitlab-redis root 95 Dec 17 18:21 redis-exporter
drwx------ 2 git root 95 Dec 17 18:19 sidekiq
drwx------ 2 git root 147 Dec 17 18:22 unicorn #应用代码和响应依赖程序目录:
[root@master gitlab]# ll /opt/gitlab/
total 1624
drwxr-xr-x 2 root root 108 Dec 16 01:45 bin
-rw-r--r-- 1 root root 157364 Nov 24 2017 dependency_licenses.json
drwxr-xr-x 18 root root 218 Dec 16 01:57 embedded
drwxr-xr-x 6 root root 166 Dec 16 01:58 etc
drwxr-xr-x 2 root root 243 Dec 16 01:58 init
-rw-r--r-- 1 root root 1460869 Nov 24 2017 LICENSE
drwxr-xr-x 2 root root 4096 Dec 16 01:45 LICENSES
drwxr-xr-x 2 root root 243 Dec 16 01:58 service
drwxr-xr-x 15 root root 243 Dec 16 01:58 sv
drwxr-xr-x 3 root root 21 Dec 16 01:57 var
-rw-r--r-- 1 root root 19881 Nov 24 2017 version-manifest.json
-rw-r--r-- 1 root root 8696 Nov 24 2017 version-manifest.txt #gitlab配置文件目录:
[root@master gitlab]# ll /etc/gitlab/
total 84
-rw------- 1 root root 72677 Dec 16 01:55 gitlab.rb
-rw------- 1 root root 9663 Dec 16 01:57 gitlab-secrets.json
drwxr-xr-x 2 root root 6 Dec 16 01:57 trusted-certs #备份文件生成的目录:
/var/opt/gitlab/backups/ #gitlab数据目录:
[root@master gitlab]# ll /var/opt/gitlab/
total 8
drwx------ 2 git root 6 Dec 16 01:57 backups
-rw------- 1 root root 38 Dec 16 01:58 bootstrapped
drwx------ 2 git root 46 Dec 16 02:04 gitaly
drwx------ 3 git root 26 Dec 16 01:57 git-data
drwxr-xr-x 3 git root 20 Dec 16 01:57 gitlab-ci
drwxr-xr-x 2 git root 32 Dec 16 01:58 gitlab-monitor
drwxr-xr-x 9 git root 160 Dec 16 01:57 gitlab-rails
drwx------ 2 git root 24 Dec 16 01:57 gitlab-shell
drwxr-x--- 2 git gitlab-www 54 Dec 16 02:04 gitlab-workhorse
drwx------ 3 root root 71 Dec 16 08:44 logrotate
drwxr-x--- 9 root gitlab-www 163 Dec 16 02:04 nginx
drwxr-xr-x 3 root root 32 Dec 16 01:58 node-exporter
drwx------ 2 gitlab-psql root 26 Dec 16 01:58 postgres-exporter
drwxr-xr-x 3 gitlab-psql root 81 Dec 16 02:04 postgresql
drwxr-x--- 3 gitlab-prometheus root 40 Dec 16 01:58 prometheus
drwxr-x--- 2 gitlab-redis git 60 Dec 17 18:43 redis
-rw-r--r-- 1 root root 40 Dec 16 01:57 trusted-certs-directory-hash #gitlab仓库数据目录:
ll /var/opt/gitlab/git-data/repositories/

关闭私有仓库注册

企业中,一般都是来人后创建gitlab账户进行分配,而不需要用户主动注册,所以注册功能需要关闭.

现有的私有仓库有注册功能:

关闭注册功能:

设置好了,下拉到底下 save

检查效果:

此时登录页面只有Sign in 没有 Sign up按钮了

gitlab自定义标题

配置效果:

除此之外还可以设置logo,这里就不设置了..浪费青春!

http://IP/admin/appearance

006. Gitlab组件介绍的更多相关文章

  1. 开源免费且稳定实用的.NET PDF打印组件itextSharp(.NET组件介绍之八)

    在这个.NET组件的介绍系列中,受到了很多园友的支持,一些园友(如:数据之巅. [秦时明月]等等这些大神 )也给我提出了对应的建议,我正在努力去改正,有不足之处还望大家多多包涵.在传播一些简单的知识的 ...

  2. 免费开源的.NET多类型文件解压缩组件SharpZipLib(.NET组件介绍之七)

    前面介绍了六种.NET组件,其中有一种组件是写文件的压缩和解压,现在介绍另一种文件的解压缩组件SharpZipLib.在这个组件介绍系列中,只为简单的介绍组件的背景和简单的应用,读者在阅读时可以结合官 ...

  3. 免费高效实用的.NET操作Excel组件NPOI(.NET组件介绍之六)

    很多的软件项目几乎都包含着对文档的操作,前面已经介绍过两款操作文档的组件,现在介绍一款文档操作的组件NPOI. NPOI可以生成没有安装在您的服务器上的Microsoft Office套件的Excel ...

  4. 免费开源的DotNet任务调度组件Quartz.NET(.NET组件介绍之五)

    很多的软件项目中都会使用到定时任务.定时轮询数据库同步,定时邮件通知等功能..NET Framework具有“内置”定时器功能,通过System.Timers.Timer类.在使用Timer类需要面对 ...

  5. 免费开源的DotNet二维码操作组件ThoughtWorks.QRCode(.NET组件介绍之四)

    在生活中有一种东西几乎已经快要成为我们的另一个电子”身份证“,那就是二维码.无论是在软件开发的过程中,还是在普通用户的日常中,几乎都离不开二维码.二维码 (dimensional barcode) , ...

  6. 最好的.NET开源免费ZIP库DotNetZip(.NET组件介绍之三)

    在项目开发中,除了对数据的展示更多的就是对文件的相关操作,例如文件的创建和删除,以及文件的压缩和解压.文件压缩的好处有很多,主要就是在文件传输的方面,文件压缩的好处就不需要赘述,因为无论是开发者,还是 ...

  7. 高效而稳定的企业级.NET Office 组件Spire(.NET组件介绍之二)

    在项目开发中,尤其是企业的业务系统中,对文档的操作是非常多的,有时几乎给人一种错觉的是”这个系统似乎就是专门操作文档的“.毕竟现在的很多办公中大都是在PC端操作文档等软件,在这些庞大而繁重的业务中,单 ...

  8. 一款开源免费的.NET文档操作组件DocX(.NET组件介绍之一)

    在目前的软件项目中,都会较多的使用到对文档的操作,用于记录和统计相关业务信息.由于系统自身提供了对文档的相关操作,所以在一定程度上极大的简化了软件使用者的工作量. 在.NET项目中如果用户提出了相关文 ...

  9. [.NET] 开头不讲"Hello Word",读尽诗书也枉然 : Word 操作组件介绍 - Spire.Doc

    开头不讲"Hello Word",读尽诗书也枉然 : Word 操作组件介绍 - Spire.Doc [博主]反骨仔 [原文地址]http://www.cnblogs.com/li ...

  10. .NET平台开源项目速览(6)FluentValidation验证组件介绍与入门(一)

    在文章:这些.NET开源项目你知道吗?让.NET开源来得更加猛烈些吧!(第二辑)中,给大家初步介绍了一下FluentValidation验证组件.那里只是概述了一下,并没有对其使用和强大功能做深入研究 ...

随机推荐

  1. 重新整理.net core 计1400篇[七] (.net core 中的依赖注入)

    前言 请阅读第六篇,对于理解.net core 中的依赖注入很关键. 和我们上一篇不同的是,.net core服务注入保存在IServiceCollection 中,而将集合创建的依赖注入容器体现为I ...

  2. css test-align 和 margin 居中什么区别

    共同点 test-align 和margin 都可以居中: test-align:Center. margin: 0 auto. 很好但是看下区别: <div style="backg ...

  3. 接口API用例自动转locust测试用例

    做接口测试是必要的,写完接口测试用例,再写locust压测脚本,其实差异不大: 写个简单的py,把接口测试脚本转为locust压测脚本,本例只是简单的示范: 原接口校验脚本: 1 # -*- codi ...

  4. Consul的服务注册与发现(简单介绍)

    Consul的注册中心的安装及配置 1.consul下载 2.开发模式启动consul consul agent -dev 3.验证测试 通过以下地址可以访问Consul的首页: http://loc ...

  5. Go原生插件使用问题全解析

    简介: 本人在设计和落地基于Go原生插件机制的扩展开发产品时踩到了很多坑,由于这方面相关资料很少,因而借此机会做一个非常粗浅的总结,希望能对大家有所帮助.本文只说问题和解决方案,不读代码. 作者 | ...

  6. Serverless 架构落地实践及案例解析

    简介: 技术演进的本质是更好服务业务,传统开发方式使企业花费更多的精力打磨底层技术细节,而 Serverless 架构就是让开发者专注业务实现从而创造更大的业务价值. 作者 | 丹坤   整理 | 徐 ...

  7. Serverless 应用优化四则秘诀

    ​简介:Serverless 架构下,虽然我们更多精力是关注我们的业务代码,但是实际上对于一些配置和成本也是需要进行关注的,并且在必要的时候,还需要根据配置与成本进行对我们的 Serverless 应 ...

  8. [FAQ] JS 实现暂停(睡眠) Sleep 与 倒计时 ?

    想要暂停/睡眠一秒,可以参考使用以下方式: async () => { await (new Promise((resolve) => setTimeout(resolve, 1000)) ...

  9. cs61a回顾

    从1月25开始到2.20,完成第一个项目hog. 总结让自己进度慢的主观因素: 妄图一次阅读掌握所有知识:违反了<为什么学生不喜欢上学>中大脑不是用来思考的,它的真正作用在于使你避免思考的 ...

  10. Git基础使用指南-命令详解

    Software is like sex: it's better when it's free. -- Linus Torvalds 前情须知 -O- 工作流程 首先要明确的是Git的工作流程,你使 ...