首页 > 其他分享 >银河麒麟安装GitLab

银河麒麟安装GitLab

时间:2023-10-06 16:03:28浏览次数:54  
标签:GitLab run 08 gitlab pid 麒麟 27 银河 2023

一、下载

wget https://packages.gitlab.cn/repository/el/8/gitlab-jh-16.2.4-jh.0.el8.aarch64.rpm


二、安装

报错缺少依赖,需要安装atmic

[root@ky10sp2-wnc-test03 soft]# rpm -ivh gitlab-jh-16.2.4-jh.0.el8.aarch64.rpm 
warning: gitlab-jh-16.2.4-jh.0.el8.aarch64.rpm: Header V4 DSA/SHA256 Signature, key ID 319ec913: NOKEY
error: Failed dependencies:
	libatomic is needed by gitlab-jh-16.2.4-jh.0.el8.aarch64

wget http://mirror.centos.org/centos/8-stream/BaseOS/aarch64/os/Packages/libatomic-8.5.0-20.el8.aarch64.rpm
rpm -ivh libatomic-8.5.0-20.el8.aarch64.rpm


执行安装gitlab成功

[root@ky10sp2-wnc-test03 soft]# rpm -ivh gitlab-jh-16.2.4-jh.0.el8.aarch64.rpm 
warning: gitlab-jh-16.2.4-jh.0.el8.aarch64.rpm: Header V4 DSA/SHA256 Signature, key ID 319ec913: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:gitlab-jh-16.2.4-jh.0.el8        ################################# [100%]
It looks like JiHu GitLab has not been configured yet; skipping the upgrade script.

                  *.                  *.
                 ***                 ***
                *****               *****
               .******             *******
               ********            ********
              ,,,,,,,,,***********,,,,,,,,,
             ,,,,,,,,,,,*********,,,,,,,,,,,
             .,,,,,,,,,,,*******,,,,,,,,,,,,
                 ,,,,,,,,,*****,,,,,,,,,.
                    ,,,,,,,****,,,,,,
                       .,,,***,,,,
                           ,*,.
  


         ___ __  __         _______ __  __          __
        / (_) / / /_  __   / ____(_) /_/ /   ____ _/ /_
   __  / / / /_/ / / / /  / / __/ / __/ /   / __ `/ __ \
  / /_/ / / __  / /_/ /  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/_/ /_/\__,_/   \____/_/\__/_____/\__,_/_.___/
  

Thank you for installing JiHu GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your JiHu GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your JiHu 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://jihulab.com/gitlab-cn/omnibus-gitlab/-/blob/main-jh/README.md

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://wj.qq.com/s2/10068464/dc66


修改external_url

[root@ky10sp2-wnc-test03 soft]# vi /etc/gitlab/gitlab.rb
32行:external_url 'http://172.16.33.37'

[root@tiaoban gitlab]# gitlab-ctl reconfigure # 配置

配置成功

银河麒麟安装GitLab_git


服务管理命令

[root@tiaoban gitlab]# gitlab-ctl start
[root@tiaoban gitlab]# gitlab-ctl status
[root@tiaoban gitlab]# gitlab-ctl stop

三、启动

启动gitlab

[root@ky10sp2-wnc-test03 soft]# gitlab-ctl start
ok: run: alertmanager: (pid 643571) 95s
ok: run: gitaly: (pid 643389) 106s
ok: run: gitlab-exporter: (pid 644778) 0s
ok: run: gitlab-kas: (pid 643448) 103s
ok: run: gitlab-workhorse: (pid 643458) 102s
ok: run: logrotate: (pid 641800) 338s
ok: run: nginx: (pid 642214) 192s
ok: run: node-exporter: (pid 643471) 102s
ok: run: postgres-exporter: (pid 643582) 95s
ok: run: postgresql: (pid 641930) 315s
timeout: down: prometheus: 0s, normally up, want up
ok: run: puma: (pid 642120) 243s
ok: run: redis: (pid 641837) 363s
ok: run: redis-exporter: (pid 643487) 133s
ok: run: sidekiq: (pid 642137) 237s


prometheus启动超时,查看日志发现9090端口占用

[root@ky10sp2-wnc-test03 soft]# tail -f /var/log/gitlab/prometheus/current

2023-08-17_03:27:54.33053 ts=2023-08-17T03:27:54.330Z caller=web.go:562 level=info component=web msg="Start listening for connections" address=localhost:9090
2023-08-17_03:27:54.33107 ts=2023-08-17T03:27:54.331Z caller=main.go:833 level=error msg="Unable to start web listener" err="listen tcp 127.0.0.1:9090: bind: address already in use"
2023-08-17_03:27:55.37410 ts=2023-08-17T03:27:55.373Z caller=main.go:534 level=info msg="No time or size retention was set so using the default time retention" duration=15d
2023-08-17_03:27:55.37414 ts=2023-08-17T03:27:55.374Z caller=main.go:578 level=info msg="Starting Prometheus Server" mode=server version="(version=2.45.0, branch=master, revision=8ef767e396bf8445f009f945b0162fd71827f445)"
2023-08-17_03:27:55.37417 ts=2023-08-17T03:27:55.374Z caller=main.go:583 level=info build_context="(go=go1.20.5, platform=linux/arm64, user=GitLab-Omnibus, date=, tags=netgo,builtinassets,stringlabels)"
2023-08-17_03:27:55.37421 ts=2023-08-17T03:27:55.374Z caller=main.go:584 level=info host_details="(Linux 4.19.90-24.4.v2101.ky10.aarch64 #1 SMP Mon May 24 14:45:37 CST 2021 aarch64 ky10sp2-wnc-test03 (none))"
2023-08-17_03:27:55.37425 ts=2023-08-17T03:27:55.374Z caller=main.go:585 level=info fd_limits="(soft=50000, hard=50000)"
2023-08-17_03:27:55.37429 ts=2023-08-17T03:27:55.374Z caller=main.go:586 level=info vm_limits="(soft=unlimited, hard=unlimited)"
2023-08-17_03:27:55.37817 ts=2023-08-17T03:27:55.378Z caller=web.go:562 level=info component=web msg="Start listening for connections" address=localhost:9090


修改prometheus端口,并重启Prometheus

[root@ky10sp2-wnc-test03 soft]# vi /etc/gitlab/gitlab.rb

# prometheus['listen_address'] = 'localhost:9090'
prometheus['listen_address'] = 'localhost:9080'

重新配置
[root@ky10sp2-wnc-test03 soft]# gitlab-ctl reconfigure

重启gitlab
[root@ky10sp2-wnc-test03 soft]# gitlab-ctl restart 

[root@ky10sp2-wnc-test03 soft]# gitlab-ctl status
run: alertmanager: (pid 767324) 305s; run: log: (pid 642586) 10152s
run: gitaly: (pid 767348) 303s; run: log: (pid 641884) 10321s
run: gitlab-exporter: (pid 771297) 1s; run: log: (pid 642305) 10177s
run: gitlab-kas: (pid 767493) 293s; run: log: (pid 642068) 10303s
run: gitlab-workhorse: (pid 767503) 293s; run: log: (pid 642196) 10194s
run: logrotate: (pid 767523) 292s; run: log: (pid 641812) 10333s
run: nginx: (pid 767537) 292s; run: log: (pid 642228) 10189s
run: node-exporter: (pid 767546) 291s; run: log: (pid 642284) 10181s
run: postgres-exporter: (pid 767560) 291s; run: log: (pid 642688) 10146s
run: postgresql: (pid 767577) 291s; run: log: (pid 641942) 10310s
run: prometheus: (pid 770628) 96s; run: log: (pid 642407) 10165s
run: puma: (pid 770729) 85s; run: log: (pid 642128) 10206s
run: redis: (pid 768033) 259s; run: log: (pid 641851) 10327s
run: redis-exporter: (pid 768056) 258s; run: log: (pid 642363) 10171s
run: sidekiq: (pid 770655) 94s; run: log: (pid 642158) 10200s

Gitlab 登录报422错误,账号密码是对的

原因:本地时间和标准时间不一致

将本地时间修改正确后,登录成功!

标签:GitLab,run,08,gitlab,pid,麒麟,27,银河,2023
From: https://blog.51cto.com/u_16288102/7724725

相关文章

  • Gitlab upgrade paths
    UpgradepathsUpgradingacrossmultipleGitLabversionsinonegois onlypossiblebyacceptingdowntime.Ifyoudon’twantanydowntime,readhowto upgradewithzerodowntime.Foradynamicviewofexamplesofsupportedupgradepaths,trythe UpgradePa......
  • 使用docker部署jenkins和gitlab
    万字干货!使用docker部署jenkins和gitlab 万字原创文章!本文将实现通过docker部署Jenkins与GitLab,并自动化发布应用:本地机器将代码推送到GitLab,GitLab通过webhook触发Jenkins流水线,Jenkins获取GitLab的代码并生成jar包,将jar包推送到应用服务器,并运行ja......
  • gitlab安装
    #参考官网#1.Installandconfigurethenecessarydependenciessudoyuminstall-yhttps://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudoyumcleanallsudoyummakecachesudoyuminstall-ypostfixcurlpolicycoreutils-pythonopenss......
  • gitlab升级后Runner 500报错
    gitlab升级后500报错今天是月饼节哦。长假最适合梳理下这段时间的工作经验。上个月说到gitlab升级到16.2.3,其实升级后没几天遇到一个比较棘手的问题:超级管理员登录进去,修改什么配置保存后都会报错500,不仅如此,还发现项目无法移动命名空间(可以理解为a用户的项目移到b用户......
  • gitlab--在 k8s 里通过 helm 部署 runner、使用缓存 cache、使用制品 artifacts
    安装helm链接:https://www.cnblogs.com/zouzou-busy/p/16134885.html配置chart存储库#添加chart存储库[root@master1~]#helmrepoaddgitlabhttps://charts.gitlab.io"gitlab"hasbeenaddedtoyourrepositories#查看存储库[root@master1~]#helmrepolist......
  • vmware剪贴板共享不起作用的解决方法-银河麒麟V10服务器版
    安装了虚拟机自带的vmwaretools,还是不行试试这样:yuminstallopen-vm-toolsyuminstallopen-vm-tools-desktop或者:sudoapt-getautoremoveopen-vm-toolssudoapt-getinstallopen-vm-toolssudoapt-getinstallopen-vm-tools-desktop 结束后务必重启下......
  • GitLab——重置(reset)和还原(revert)
    Git命令reset和revert的区别-知乎(zhihu.com)总结:gitreset--hard9201d9b19dbf5b4ceaf90f92fd4e4019b6858513reset——删除节点9201d9b19dbf5b4ceaf90f92fd4e4019b6858513节点后的所有提交内容及记录gitpush-f强制推送到对应分支两者搭配使用 revert——还原......
  • 麒麟桌面操作系统安装软件
    方法一:1、双击安装包2、点击“一键安装”3、输入管理员密码4、安装中5、安装完成方法二:1、右键点击桌面,选择“打开终端”2、输入“sudodpkg-i软件包名”,输入管理员密码进行安装方法三:1、点击“开始菜单”,点击“软件商店”2、搜索框搜索软件名称,点击下载3、安装中4、安装完成点......
  • 麒麟桌面操作系统修改网络
    1、进入网络设置页面方法一:鼠标右键点击“网络工具”,点击“设置网络项”方法二:依次点击”开始菜单“、”设置“、”网络“2、修改网络方法一:1)点击“高级设置”2)点击”有线连接1“,点击”编辑选中的连接“3)选择”IPv4设置“,方法选择”手动“,点击”添加“4)输入”地址、子网掩码、网关......
  • Gitlab 提交指令
    提交代码:将拉取的代码修改后,将修改部分的代码先推到自己的仓库,然后推到远程分支上面。常用指令gitstatus查看仓库当前的状态,显示有变更的文件。gitadd+文件名添加文件到暂存区。gitcommit-s提交暂存区到本地仓库。//需要添加解释“对HSE兼容调试做解释”(第一次执行时,......