gitlab-ce官方文档查看备录

gitlab文档

关于gitlab-ce

GitLab Community Edition (CE) is available freely under the MIT Expat license.

关于unicorn的workers

For most instances we recommend using: CPU cores + 1 = unicorn workers. So for a machine with 2 cores, 3 unicorn workers is ideal.
url:http://doc.gitlab.com/ce/install/requirements.html

关于内存设置问题

2GB RAM is the recommended memory size and supports up to 100 users
url:http://doc.gitlab.com/ce/install/requirements.html

gitlab.rb文件参数修改

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/README.md#installation

gitLab日志

http://doc.gitlab.com/ce/logs/logs.html
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/logs.md
=====
production.log
     This task is more useful for GitLab contributors and developers. Use part of this log file when you are going to report bug.
=====
application.log
    This log file helps you discover events happening in your instance such as user creation, project removing and so on.
=====
githost.log
    The GitLab has to interact with git repositories but in some rare cases something can go wrong and in this case you will know what exactly happened. This log file contains all failed requests from GitLab to git repository. In majority of cases this file will be useful for developers only.
=====
sidekiq.log
    GitLab uses background jobs for processing tasks which can take a long time. All information about processing these jobs are writing down to this file.
=====
gitlab-shell.log
    gitlab-shell is using by Gitlab for executing git commands and provide ssh access to git repositories.
=====
unicorn_stderr.log
    Unicorn is a high-performance forking Web server which is used for serving GitLab application. You can look at this log, for example, if your application does not respond. This log cantains all information about state of unicorn processes at any given time.

排错

http://doc.gitlab.com/ce/raketasks/maintenance.html#gather-information-about-gitlab-and-the-system-it-runs-on

=====
两条指令为你引导
1、系统信息监测
gitlab-rake gitlab:env:info

2、各种状态监测
gitlab-rake gitlab:check

碰到问题

问题描述

每天总有一段时间会出现403的情况
办公网不能访问位

排错向导

https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide

预估原因

http://doc.gitlab.com/ce/operations/sidekiq_memory_killer.html
https://gitlab.com/gitlab-org/gitlab-ce/issues/1171   ##https证书过期问题

初步知识掌握

gitlab和ladp联动

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/ldap.md

操作规范

1、如果更改了主配置文件 [gitlab.rb文件]
=====
需要以下操作
1、gitlab-ctl reconfigure               使配置文件生效 但是会初始化除了gitlab.rb之外的所有文件
2、gitlab-ctl show-config               验证配置文件
3、gitlab-ctl restart                   重启gitlab服务

=====
# gitlab-ctl stop unicorn           停止组件内某一个服务
# gitlab-ctl status unicorn        查看状态
# gitlab-ctl kill unicorn              kill掉某一个服务
# gitlab-ctl status unicorn        再次查看状态
# gitlab-ctl start unicorn           启动服务

参考文档

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
http://doc.gitlab.com/ce/install/installation.html

原创文章,作者:追马,如若转载,请注明出处:http://www.178linux.com/7985

赞 (0)
追马追马
上一篇 2015-09-06 19:50
下一篇 2015-09-06 20:11

相关推荐

  • Linux基本知识之Vim编辑器

    vim文本编辑器:    vim是Linux系统上的最著名的文本/代码编辑器,也是早年的vi编辑器的加强版,而gVim则是其windows版。它的最大特色是完全使用键盘命令进行编辑,脱离了鼠标操作虽然使得入门变得困难,但上手之后键盘流的各种巧妙组合操作却能带来极大幅度的效率的提升。 (1)打开文件与关闭文件:     …

    Linux干货 2016-08-10
  • FHS文件系统各目录功能

    / 根目录。 包含了几乎所的文件目录。相当于中央系统。进入的最简单方法是:cd /。 /boot 引导程序,内核等存放的目录。 这个目录,包括了在引导过程中所必需的文件,引导程序的相关文件(例如grub,lilo以及相应的配置文件以及Linux操作系统内核相关文件(例如vmlinuz等一般都存放在这里。在最开始的启动阶…

    Linux干货 2016-10-20
  • 马哥门徒Linux运维课程笔记-第1天03讲 计算机及操作系统基础

    第1天03讲 计算机及操作系统基础   ◆  市面上主流Unix厂商简介         由于Unix系统的流行,当时行业中的主流大厂商都根据SysV或BSD开发了自己的版本,主要分类如下:       ●  IBM公司根据自己CPU硬件架…

    Linux干货 2015-03-23
  • CentOS 7破解密码教程

    启动时任意键暂停启动  按e键进入编辑模式  将光标移动linux16开始的行,添加内核参数rd.break  按ctrl-x启动  mount –o remount,rw /sysroot  chroot /sysroot  passwd root  touch /.autorelabe…

    Linux干货 2016-12-01
  • sed对比grep之理解

    sed对比grep之理解 很多时候回车按下,没有结果,或是报错。 检查发现都是低级错误,关键是习惯刚学完grep,有写习惯没改过来。 sed语法很重要。script语法写对了,就成功了一大半,剩下的就是正则表达式的问题了。 sed与grep的区别是 grep是个行过滤器,筛选符合条件的行。也可以只显示每行匹配到的文本(-o选项),不对文本进行编辑,只是显示查…

    Linux干货 2016-08-10
  • N25-第三周博客作业

    1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。 [root@node1 ~]# who | cut -d" " -f1 | uniq (unknown) root 2、取出最后登录到当前系统的用户的相关信息…

    Linux干货 2016-12-17