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.www58058.com/7985

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

相關推薦

  • CentOS7中nmcli網絡管理及使用詳解

    一、網絡接口配置工具    在CentOS7系統中,強烈推薦使用nmcli管理網卡。下面記錄的是nmcli的使用詳解。    網絡接口配置工具NetworkManager(簡稱為nmcli),該命令的作用是:可以查詢網絡連接的狀態,也可以用來管理網絡(設置系統每個網卡的特性)。該命令如何使用呢,其實可以用"n…

    Linux干貨 2016-09-11
  • 初探VIM_第六周練習(02)

    引言—什么是Vim? 接觸Linux這么久,想必對于一切皆文件的哲學思想已經不陌生了。因此,學習并掌握用一款Linux文本編輯器,對于玩轉LInux來說,是很有必要的。 vi編輯器是Unix系統最初的編輯器,它使用控制臺圖形模式來模擬文本編輯窗口,允許查看文件中的行、在文件中移動、插入、編輯和替換文本。 在GNU項目將vi編輯器移植到開源世界時,…

    Linux干貨 2016-12-18
  • N25_第十一周的作業

    1、詳細描述一次加密通訊的過程,結合圖示最佳。 2、描述創建私有CA的過程,以及為客戶端發來的證書請求進行辦法證書。 3、描述DNS查詢過程以及DNS服務器類別。          第一段:主機到運營商的DNS服務器(遞歸)    &nbs…

    Linux干貨 2017-02-22
  • Linux基礎知識——文件查找

    Linux系統的核心思想之一就是一切皆文件,可想而知你要靠記憶去查找一個文件該是多么費勁;今天我們介紹幾個文件查找命令:whereis,locate,find whereis locate the binary, source, and manual page files for…

    Linux干貨 2016-10-11
  • 手動編譯內核+busybox+dropbear+nginx

    我們需要先在宿主機上添加一個磁盤,然后,把這個磁盤做好分區和文件系統: fdisk /dev/sdb 創建第一個分區: n p 1 +512M 創建第二個分區: n p 2 +10G 保存退出: w 為分區提供文件系統: kpartx /dev/sdb 為分區提供文件系統: mke2fs -t ext4 /dev/sd…

    Linux干貨 2015-09-24
  • 網絡班第七周 作業

    1、創建一個10G分區,并格式為ext4文件系統 (1) 要求其block大小為2048,預留空間百分比為2,卷標為MYDATA,默認掛載屬性包含acl (2) 掛載至/data/mydata目錄,要求掛載時禁止程序自動運行,且不更新文件的訪問時間戳 創建了一個20G的SCSI硬盤 fdisk /dev/sdb 創建ext4文件系統 ~]# mke2fs -…

    2017-09-16
欧美性久久久久