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

相关推荐

  • 备份练习

    课外整理 cp 功能: 复制文件或目录说明: cp指令用于复制文件或目录,如同时指定两个以上的文件或目录,且最后的目的地是一个已经存在的目录,则它会把前面指定的所有文件或目录复制到此目录中。若同时指定多个文件或目录,而最后的目的地并非一个已存在的目录,则会出现错误信息参数:     -a 或 –archiv…

    Linux干货 2016-08-08
  • nginx

    1.Nginx的程序架构:        master/worker            一个master进程:     &nb…

    2017-06-19
  • 网络管理,程序管理

    lsmod |grep bond0 ifconfig bond0 down 关闭bonding服务 rmmod bonding  删除 bonding 服务 lsmod |grep eth1000 查看  lsmod指令,会列出所有已载入系统的模块 rmmod  删除内核中的一模块  查找网卡驱动e1000 rmmod…

    Linux干货 2016-09-11
  • 高级文件系统的管理

    一、迁移分区 分区 /dev/sda6 注意同步问题  创建分区,把原先家目录下的文件拷贝到新挂载的文件中 mkfs.ext4 /dev/sda6  mkdir /mnt/home mount /dev/sda6 /mnt/home cp -a /home/*  /mnt/home   init 1 切换单用户模式,把…

    Linux干货 2016-11-27
  • 二进制、八进制、十进制、十六进制之间的转换

    二进制、八进制、十进制、十六进制之间的关系:   二进制:0,1 八进制:0,1,2,3,4,5,6,7, 十进制:0,1,2,3,4,5,6,7,8,9 十六进制:0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F   二进制与十进制之间的转换: 十进制转二进制:   二进制转十进制:   二进制与八进制…

    2017-04-01