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
下一篇 2015-09-06

相关推荐

  • Linux下如何使用sendEmail来发送邮件

    1)什么是sendEmail sendEmail是一个轻量级,命令行的SMTP邮件客户端(注意,不要跟sendmail混淆了)。如果你需要使用命令行发送邮件,那么sendEmail是非常完美的选择:使用简单并且功能强大,从此以后你就爱上了它。 2)安装sendEmail [root@zabbix ~]# wget http://…

    系统运维 2016-07-29
  • 由Linux中一个小问题引发的思考

    一、一个小问题 1、在学习Linux中我们经常会遇到很多有趣的小问题,今天笔者就遇到了一个很有意思的小问题,现在分享给大家:      “如何在本机字符终端登陆时,除显示原有信息外,再显示当前终端号,时间和主机名?” 2、实现方法如下:      输入vim /etc/…

    2017-07-16
  • DNS和BIND配置(第二部分)

    接第一部分课后练习 三、课后练习: 2、配置反向解析: 步骤一:写主配置文件:改成与上个实验相同,也可以自己写一个简单的配置文件,如下: [root@localhost tmp]# cat named.conf.new options { directory  "/var/named&qu…

    Linux干货 2016-10-17
  • 软件包管理

    软件包管理 软件运行和编译 ABI:应用程序二进制接口;直接给编译好的二进制使用; windows与linux不兼容, windows: ELF linux: PE 库级别的虚拟化: linux:WINE windows:Cywin API:定义了和库之间的接口;编写应用程序时调用的函数之类的; 编译程序源代码(.c) –> 预编译(.i)…

    Linux干货 2017-04-21
  • keepalived+nginx 模型示例

    原理为: 调度器 利用 keepalived 保持高可用性,实现对系统的监控和VIP 的floating NGINX 利用upstream模块进行调度 关键点: keepalived 对NGINX 状态的监控: //利用配置文件中设定的脚本对调度器的nginx 进程的监控 实验步骤: 基于上一篇LVS-DR架构来做,具体LVS-DR架构请参考上一篇 先设置主…

    2017-05-13
  • Linux用户与组之权限管理

    权限(rwx、sst、umask) chown chmod ACL(见下篇) 试验环境:CentOS 7.2 与CentOS 6.8,具体会在应用场景明确指出 权限 Linux系统对用户与组的管理,其具体操作手段就是对于权限的分配,而常见的权限分配工具有 rwx, sst, umask, ACL. 跟用户与组有uid和gid一样,权限也有…

    Linux干货 2016-08-07