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

相關推薦

  • OpenStack之keystone

    一、什么是OpenStack    OpenStack是一種云操作系統,它控制著一個數據中心里大量的計算、存儲和網絡資源。管理員在一個web界面內通過儀表盤方便地管理,控制,授權用戶,以提供各種資源。 二、云服務分類 可分為IAAS, PAAS, SAAS等 IAAS:Infrastructure as a Service (操作系統級別…

    Linux干貨 2017-01-19
  • SDCC 2017互聯網運維開發實戰峰會上海站

    3月17日-19日,由CSDN重磅打造的互聯網運維開發實戰峰會、數據庫核心技術與應用實戰峰會和互聯網應用 架構實戰峰會將在上海舉行。 作為SDCC 2017(中國軟件開發者大會)系列技術峰會的一部分,秉承干貨實料(案例)的內容原則。 這三場峰會將邀請業內頂尖的架構師和技術專家,共同探討運維工具研發與實踐、運維自動化系統的構建、大數據與運維…

    Linux干貨 2017-02-11
  • linux小小小入門。

      ?用戶登錄: ? ? ❤root用戶 這是一個特殊的管理賬戶,也被稱為超級賬戶,root已經接近完整的系統控制。但是對系統的損害有非常廣泛的能力。(一般情況下不會登錄root) ? ? ❤普通用戶 權限有限,損害能力較小。 ?終端terminal: ? ? ❤設備終端 鍵盤,鼠標,顯示器 ? ? &#x…

    Linux干貨 2018-03-26
  • 馬哥教育網絡班22期+第4周課程練習

    1、復制/etc/skel目錄為/home/tuser1,要求/home/tuser1及其內部文件的屬組和其它用戶均沒有任何訪問權限。 [root@localhost ~]# cp -r /etc/skel /home/tuser1 [root@localhost ~]# chmod&nb…

    Linux干貨 2016-09-05
  • Linux任務計劃命令及應用

    at命令,crontab命令

    2018-03-12
  • 詳解用戶,組,權限管理

    詳解用戶,組,權限管理 M21-陸東貴 測試環境:CentOS 7.2 內容介紹: 我們要使用操作系統進行工作,就需要人機交互操作,這時候計算機就需要創建用戶,通過用戶來實現操作,而且隨著用戶的增加需要給用戶分組,這時候就需要對文件進行權限管理。 需要使用的工具:       用戶相關工具:useradd; …

    Linux干貨 2016-10-25
欧美性久久久久