欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

centos7.x搭建gitlab9.2.2-創(chuàng)新互聯(lián)

1、介紹

創(chuàng)新互聯(lián)公司主營洛江網(wǎng)站建設(shè)的網(wǎng)絡公司,主營網(wǎng)站建設(shè)方案,app軟件定制開發(fā),洛江h(huán)5成都小程序開發(fā)搭建,洛江網(wǎng)站營銷推廣歡迎洛江等地區(qū)企業(yè)咨詢

GitLab 是一個用于倉庫管理系統(tǒng)的開源項目。

2、官方硬件介紹配置

CPU

1 核心CPU最多支持100個用戶,所有的workers和后臺任務都在同一個核心工作這將導致GitLab服務響應會有點緩慢。

2 核心 支持500用戶,這也是官方推薦的最低標準。

4 核心支持2,000用戶。

8 核心支持5,000用戶。

16 核心支持10,000用戶。

32 核心支持20,000用戶。

64 核心支持40,000用戶。

如果想支持更多用戶,可以使用 集群式架構(gòu)

Memory

安裝使用GitLab需要至少4GB可用內(nèi)存(RAM + Swap)! 由于操作系統(tǒng)和其他正在運行的應用也會使用內(nèi)存, 所以安裝GitLab前一定要注意當前服務器至少有4GB的可用內(nèi)存. 少于4GB內(nèi)存會導致在reconfigure的時候出現(xiàn)各種詭異的問題, 而且在使用過程中也經(jīng)常會出現(xiàn)500錯誤.

最后官方最后的提醒:

1GB 物理內(nèi)存 + 3GB 交換分區(qū) 是最低的要求,但我們 強烈反對 使用這樣的配置。 查看下面unicorn worker章節(jié)獲取更多建議。

2GB 物理內(nèi)存 + 2GB 交換分區(qū) 支持100用戶,但服務響應會很慢。

4GB 物理內(nèi)存 支持100用戶,也是 官方推薦 的配置。

8GB 物理內(nèi)存 支持 1,000 用戶。

16GB 物理內(nèi)存 支持 2,000 用戶。

32GB 物理內(nèi)存 支持 4,000 用戶。

64GB 物理內(nèi)存 支持 8,000 用戶。

128GB 物理內(nèi)存 支持 16,000 用戶。

256GB 物理內(nèi)存 支持 32,000 用戶。

如果想支持更多用戶,可以使用 集群式架構(gòu)

關(guān)于官網(wǎng)的unicorn我并未詳細查閱,都是英文,看起來非常吃力!

3、GitLab服務構(gòu)成

GitLab由以下服務構(gòu)成:

nginx:靜態(tài)Web服務器

gitlab-shell:用于處理Git命令和修改authorized keys列表

gitlab-workhorse:輕量級的反向代理服務器

logrotate:日志文件管理工具

postgresql:數(shù)據(jù)庫

redis:緩存數(shù)據(jù)庫

sidekiq:用于在后臺執(zhí)行隊列任務(異步執(zhí)行)

unicorn:An HTTP server for Rack applications,GitLab Rails應用是托管在這個服務器上面的。

經(jīng)我統(tǒng)計,一共8個組件。

4、官方的推薦安裝方式

1、安裝配置依賴項 如想使用Postfix來發(fā)送郵件,在安裝期間請選擇'Internet Site'. 您也可以用sendmai或者 配置SMTP服務 并 使用SMTP發(fā)送郵件. 在 Centos 6 和 7 系統(tǒng)上, 下面的命令將在系統(tǒng)防火墻里面開放HTTP和SSH端口. sudo yum install curl policycoreutils openssh-server openssh-clients git -y sudo systemctl enable sshd sudo systemctl start sshd sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix sudo firewall-cmd --permanent --add-service=http sudo systemctl reload firewalld 2. 添加GitLab倉庫,并安裝到服務器上 curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce 如果你不習慣使用命令管道的安裝方式, 你可以在這里下載 安裝腳本 或者 手動下載您使用的系統(tǒng)相應的安裝包(RPM/Deb) 然后安裝 curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpm curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm  rpm -i gitlab-ce-XXX.rpm 3. 啟動GitLab sudo gitlab-ctl reconfigure 4. 使用瀏覽器訪問GitLab 首次訪問GitLab,系統(tǒng)會讓你重新設(shè)置管理員的密碼,設(shè)置成功后會返回登錄界面. 默認的管理員賬號是root,如果你想更改默認管理員賬號,請輸入上面設(shè)置的新密碼登錄系統(tǒng)后修改帳號名.  參數(shù)配置和故障排查請查看 Omnibus GitLab 文檔   GitLab-CE中國鏡像源 清華大學TUNA開源鏡像站, 浙江大學開源鏡像站                *.                  *.       ***                 ***      *****               *****     .******             *******     ********            ********    ,,,,,,,,,***********,,,,,,,,,   ,,,,,,,,,,,*********,,,,,,,,,,,   .,,,,,,,,,,,*******,,,,,,,,,,,,       ,,,,,,,,,*****,,,,,,,,,.          ,,,,,,,****,,,,,,             .,,,***,,,,                 ,*,.      _______ __  __          __     / ____(_) /_/ /   ____ _/ /_    / / __/ / __/ /   / __ `/ __ \   / /_/ / / /_/ /___/ /_/ / /_/ /   \____/_/\__/_____/\__,_/_.___/ gitlab: Thank you for installing GitLab! gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND: sudo gitlab-ctl reconfigure gitlab: GitLab should be reachable at http://localhost gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file gitlab: And running reconfigure again. gitlab:  gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md gitlab:  It looks like GitLab has not been configured yet; skipping the upgrade script.

gitlab所有的工程目錄都在/var/opt/gitlab/下,你可以在這個目錄看到他們所有的組件

5、更改gitlab配置

vim /etc/gitlab/gitlab.rb

#修改GitLab配置文件中的external_url,修改這個配置會影響GitLab里面顯示的倉庫鏈接 external_url 'http://gitlab.abc.com'   #時間區(qū)域,但是我修改這個時區(qū)后無法正常訪問,失敗原因為查詢 gitlab_rails['time_zone'] = 'Asia/Shangha'  #修改gitlab數(shù)據(jù)存儲路徑 git_data_dirs({ "default" => { "path" => "/data/gitlab_data"}}) #設(shè)置nginx監(jiān)控端口,訪問的時候是http://gitlab.abc.com:9000 nginx['listen_port'] = 9000 #Gitlab 修改備份文件默認目錄 gitlab_rails['backup_path'] = '/data/gitlab_backups' #163郵箱配置 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.163.com" gitlab_rails['smtp_port'] = 25 gitlab_rails['smtp_user_name'] = "xxx@163.com" gitlab_rails['smtp_password'] = "xxxxxx" gitlab_rails['smtp_domain'] = "163.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['gitlab_email_from'] = 'xxx@163.com' gitlab_rails['gitlab_email_display_name'] = 'Gitlab'

6、啟動gitlab

sudo gitlab-ctl reconfigure sudo gitlab-ctl start

啟動后,登陸web界面,記得使用管理員賬號關(guān)閉開放注冊認證sign-up,禁止別人注冊使用。

7、gitlab備份

Gitlab 創(chuàng)建備份,會在備份目錄/data/gitlab_data下生成tar文件

gitlab-rake gitlab:backup:create

8、gitlab常用命令

查看服務狀態(tài) $ sudo gitlab-ctl status 啟動服務 $ sudo gitlab-ctl start 關(guān)閉服務 $ sudo gitlab-ctl stop 重啟服務 $ sudo gitlab-ctl restart 設(shè)置完配置后重新加載配置 $ sudo gitlab-ctl reconfigure 查看nginx日志 gitlab-ctl tail nginx/gitlab_access.log

9、漢化

#漢化 https://gitlab.com/xhang/gitlab

10、不小心把signin登陸窗口關(guān)閉了,可以使用這個辦法解決

#Gitlab - 如何解決 "No authentication methods configured on login page" ? (gitlab version : 9.2.2)   sudo gitlab-psql -l 查看資料庫列表 gitlab-psql gitlabhq_production UPDATE application_settings set signin_enabled=true; \q sudo gitlab-ctl restart

參考:

https://www.gitlab.com.cn/downloads/#centos7

http://www.jianshu.com/p/a22eaa1fcfe7

https://docs.gitlab.com.cn/ce/install/requirements.html

https://bbs.gitlab.com.cn

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

文章名稱:centos7.x搭建gitlab9.2.2-創(chuàng)新互聯(lián)
文章URL:http://chinadenli.net/article28/cohhjp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機網(wǎng)站設(shè)計公司建站公司做網(wǎng)站用戶體驗網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設(shè)