首页 > 其他分享 >gitlab-代码管理工具的离线安装部署

gitlab-代码管理工具的离线安装部署

时间:2023-09-18 22:47:17浏览次数:33  
标签:__ run 离线 gitlab pid 管理工具 ok root

gitlab-代码管理工具的离线安装部署

最低安装条件:

资源 最低限度 推荐
CPU 2核 4核
内存 4 GB 8 GB

解决安装依赖

yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python

gitlab的rpm包下载

开始rpm安装

[root@localhost ~]# rpm -ivh gitlab-ce-16.2.6-ce.0.el7.x86_64.rpm 
警告:gitlab-ce-16.2.6-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:gitlab-ce-16.2.6-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=16-2

修改gitlab配置文件信息,指定服务ip和端口号

[root@localhost ~]# vim /etc/gitlab/gitlab.rb
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
#external_url 'http://gitlab.example.com'
#找到这行将url修改为自己的服务器ip和端口号
external_url 'http://ip:端口号'

将external_url后面的url替换为自己的ip+端口号,(查看端口是否被占用,防火墙是否放开

加载配置信息

[root@localhost ~]# gitlab-ctl reconfigure
# 最后输出这些信息
Notes:
Default admin account has been configured with following details:
# 管理员用户名
Username: root
# 管理员密码,查看/etc/gitlab/initial_root_password,但是24h后删除需及时修改
Password: You didn't opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.

NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

gitlab Reconfigured!

注:如果发现ip或者端口等配置信息需要更改,每次更改完之后,一定要重新加载配置 gitlab-ctl reconfigure

重启gitlab服务

[root@localhost ~]# gitlab-ctl restart
ok: run: alertmanager: (pid 4076) 1s
ok: run: gitaly: (pid 4084) 1s
ok: run: gitlab-exporter: (pid 4097) 0s
ok: run: gitlab-kas: (pid 4112) 0s
ok: run: gitlab-workhorse: (pid 4120) 1s
ok: run: logrotate: (pid 4130) 0s
ok: run: nginx: (pid 4136) 1s
ok: run: node-exporter: (pid 4142) 0s
ok: run: postgres-exporter: (pid 4147) 0s
ok: run: postgresql: (pid 4174) 1s

根据gitlab.rb文件中配置的IP地址和端口访问

image-20230915145306388

image-20230915145329784

汉化设置,注意设置保存后刷新页面

image-20230915145603659

密码修改

image-20230915145717749

标签:__,run,离线,gitlab,pid,管理工具,ok,root
From: https://www.cnblogs.com/the1729cranes/p/17713315.html

相关文章

  • Linux离线安装Mysql-5.7
    1、背景描述在真实业务场景下,Linux服务器一般位于内网,所以无法直接访问互联网资源;特别是安装数据库的Linux服务器,在网络方面的管控只会更加严格;因此,需要提前下载好相关资源,再传输到内网Linux服务器进行安装;2、下载Mysql的安装包下载地址:https://dev.mysql.com/downl......
  • 离线部署-docker
    离线部署---docker关键词:docker离线部署,images离线安装,dockercompose,shell,miniodocker离线安装dockerinstalloffline下载相应的版本的deb包,我的系统是ubuntu20.04,因此选择focal文件夹,路径:按照文档下载相应的包,挑选自己想要的版本。从部署脚本中截取安装docker的部分:#!/......
  • gitlab迁移到新的docker容器中
    迁移步骤1、备份旧gitlab数据gitlab-rakegitlab:backup:create默认会保存在/var/opt/gitlab/backups,实际情况可以使用find查找下文件路径2、在新服务器上使用docker搭建相同版本的gitlabversion:'3'services:gitlab:image:'gitlab/gitlab-ce:11.9.8-ce.0'......
  • docker容器里gitlab备份
    一、数据的备份docker容器里的gitlab备份chatgpt/2023/9/185:35:56一、数据的备份1.进入容器dockerexec-itgitlab/bin/bash2、执行备份命令gitlab-rakegitlab:backup:create默认将备份文件保存至/var/opt/gitlab/backups/3.将json和rb文件也复制到备份目录下......
  • python包离线环境安装与批量安装
    python项目进行落地部署的时候,经常是在离线的服务器或者工控机中进行的。python不同于c类程序,可以直接复制外部依赖项文件夹,这时,python程序如果需要正常运行,需要编写过程中第三方库的支持。首先,在联网环境下,进入cmd终端,使用以下命令下载包python-mpipdownloadtest1test2==......
  • 有没有一款让人爱不释手的知识库工具?知识库管理工具不难选!
    对于企业来说,因为其本身的业务需求、外部各类标准规范的要求、数字化转型趋势带来的便利,使得更多的企业开始自主搭建知识库,开始试图通过知识管理去提升组织的效率和创新能力。虽然说市面上有不少关于知识笔记的管理工具,比如有道云、幕布、印象笔记、Typora,甚至也有人将笔记存放在gi......
  • Ubuntu下载离线仓库
    #############config###################setbase_path/var/www/html#setmirror_path$base_path/mirror#setskel_path$base_path/skel#setvar_path$base_path/var#setcleanscript$var_path/clean.sh#setdefaultarch<runninghostarc......
  • WebStrom提交代码到GitLab报错Error: Cannot find any-observable implementation nor
    项目场景:前端代码完成后,提交代码问题描述提交代码到GitLab时,因自动检测机制导致项目提交失败C:\D\insper\inspur_works\custom-manage-front\node_modules\any-observable\register.js:29 thrownewError('Cannotfindany-observableimplementationnor'+ ^Error:C......
  • linux下离线环境得安装
    关于在离线linux服务器上安装python环境、python包得各种问题和坑(linux是只有yum得情况下)、1、第一种:安装python->逐个安装python包->用pip的方式   问题l:如果涉及的python包需要安装c库就比较麻烦,比如说gdal的安装需要sqlite、proj的tar源码进行编译安装环境,版本也容易......
  • harbor-私有镜像仓库的离线安装部署
    harbor-私有镜像仓库的离线安装部署最低安装条件:资源最低限度推荐CPU2核4核内存4GB8GB最低软件要求:软件版本描述Dockerengine版本17.06.0-ce+或更高版本有关安装说明,请参阅Docker引擎文档DockerCompose版本1.18.0或更高版本有......