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

相关推荐

  • Openssl搭建私有CA认证

    概述 CA英文全称Certification Authority,即数字证书认机构。从广义上来说,CA是负责发放和管理数字证书的权威机构,并作为用户数字认证中受信任的第三方,承担公钥体系(PKI)中公钥的合法性检验的责任,在互联网上,实现用户与用户、用户与企业之间的数字身份认证。 本文通过使用openssl进行搭建私有CA认证体系,从而简单地了解CA的认证过…

    Linux干货 2016-09-22
  • bash特性及用户和组的管理相关练习

    1、列出当前系统上所有已经登录的用户的用户名,注意同一个用户登录多次,则只显示一次即可: 2、取出最后登录到系统的用户的相关信息: 3、取出当前系统上被用户当做默认shell最多的那个shell: 4、将/etc/passwd中的第三个字段数值最大的后10个用户的信息全部改为大写后保存至/tmp/maxuser.txt文件中: 5、取出当前主机的IP地址: …

    2017-10-16
  • 快速搭建ss上网

    快速搭建ss 方法一: [root@cloud ~]# yum install build-essential autoconf libtool openssl-devel gcc -y [root@cloud ~]# git clone&…

    Linux干货 2016-06-09
  • Linux命令语法及其帮助信息

    一、Linux命令语法 1、通用格式:command options argument 2、Command: 3、Options: 4、Argument: 二、Linux命令帮助信息获取途径 1、help命令 && –help选项 2、manual (1)章节 (2)语法 (3)man命令输出详解   &nbs…

    Linux干货 2016-09-19
  • week4:grep命令正则表达式的应用

    1.复制/etc/skel目录为/home/tuser1,要求/home/tuser1及其内部文件的属组和其他用户均没有任何访问权限;     ~]# cp -r /etc/skel/ /home/tuser1 |chmod -R g-rwx,o-rwx /home/tuser1 2.编辑/etc/group文件,添加组hadoop; &…

    Linux干货 2016-11-23
  • 用户,管理,权限

    主要是介绍一些 关于创建用户 ,更改用户信息及密码 ,还有权限管理等等。可能介绍的不全还请大佬们多多关照新人!

    Linux干货 2017-11-24