1.1 下載gitlab安裝包
使用rpm包安裝命令安裝gitlab的rpm包,下載地址為https://packages.gitlab.com/gitlab/gitlab-ce社區(qū)版本;
推薦使用清華大學(xué)鏡像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
gitlab安裝包詳見:day07-實戰(zhàn)\資料\GitLab安裝\rpm安裝包\gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
1.2 rpm安裝gitlab
將gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm包上傳到centos7下,然后安裝:
[root@itheima1 installPackages]# rpm -ivh gitlab-ce-14.10.2-ce.0.el7.x86_64.rpm
效果:
警告:gitlab-ce-14.10.2-ce.0.el7.x86_64.rpm: 頭V4 RSA/SHA1 Signature, 密鑰 ID f27eab47: NOKEY
準(zhǔn)備中... ################################# [100%]
正在升級/安裝...
1:gitlab-ce-14.10.2-ce.0.el7 ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-10
1.3 配置gitlab
安裝完畢后,提示信息如下:
編輯/etc/gitlab/gitlab.rb文件添加訪問gitlab的wen路徑:
然后刷新配置:
# 執(zhí)行命令
[root@itheima1 installPackages]# gitlab-ctl reconfigure
刷新配置過程比較耗時,耐心等待,最終效果如下:
注意事項:
運行g(shù)itlab-ctl reconfigure指令時,如果卡頓則停止,后運行g(shù)itlab-ctl stop指令后,在重新運行g(shù)itlab-ctl reconfigure指令;
1.4 訪問gitlab服務(wù)
http://192.168.200.130:9595
默認(rèn)登錄賬號和密碼為: root 5iveL!fe
可通過登錄界面修改root密碼,最終效果如下:文章來源:http://www.zghlxwxcb.cn/news/detail-829155.html
為: root 5iveL!fe
可通過登錄界面修改root密碼,最終效果如下:
[外鏈圖片轉(zhuǎn)存中…(img-kGK5OG55-1708332862331)]文章來源地址http://www.zghlxwxcb.cn/news/detail-829155.html
到了這里,關(guān)于rpm安裝gitlab的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!