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之数组

      Linux之数组     数组介绍数组:存储多个元素的连续的内存空间,相当于多个变量的集合。 变量:存储单个元素的内存空间数组名和索引索引:编号从0开始,属于数值索引注意:索引可支持使用自定义的格式,而不仅是数值格式,即为关联索引,bash4.0版本之后开始支持。bash的数组支持稀疏格式(索引不连续)声明数组:de…

    Linux干货 2016-08-25
  • net25-第14周作业

    系统的INPUT和OUTPUT默认策略为DROP; ~]# iptables -P INPUT DROP ~]# iptables -P OUTPUT DROP 1、限制本地主机的web服务器在周一不允许访问;新请求的速率不能超过100个每秒;web服务器包含了admin字符串的页面不允许访问;web服务器仅允许响应报文离开本机; ~]#iptables -…

    Linux干货 2017-05-15
  • 利用 yum 查找某个命令属于哪个包

    当我们在安装一个不熟悉的命令是,会遇到个问题:Error: Nothing to do 而你又不知道该命令的是属于哪个rom包,莫慌~我们可以借助一个叫yum的基于rpm的软件包管理器。 以 dig 这个命令为例,当我安装它时会出现如下情况  [root@localhost ~]# yum install dig  Loaded plug…

    Linux干货 2016-03-27
  • N25_第六周作业

    1、复制/etc/rc.d/rc.sysinit文件至tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#; :%s@^[[:space:]]\+@#&@g(CentOS7下并未看到这个文件) 2、复制/boot/grub/grub.conf至/tmp目录中,删除/tmp/grub.conf文件中的行首的空白字符;…

    Linux干货 2017-02-15
  • 计算机的组成及功能

    计算机的组成及功能 计算机的组成 计算机的组成,简单地来说,包含硬件和软件两部分,两者相辅相成,缺一不可。在计算机网络发展的今天,网络也已成为计算机不可或缺的一部分。 计算机硬件 可以分为如下5个部分: 控制器 负责对程序的控制信息进行分析,控制并协调输入、输出操作或内存访问,如CPU 运算器 负责数据的算术运算和逻辑运算,如C…

    Linux干货 2016-10-29
  • Linux下 文件类型不同颜色的含义

    linux 文件颜色的含义 蓝色代表目录 绿色代表可执行文件 红色表示压缩文件 浅蓝色表示链接文件 灰色表示其他文件 红色闪烁表示链接的文件有问题了 黄色表示设备文件 蓝色文件———-目录 白色文件———-一般性文件,…

    Linux干货 2016-10-18