首页 > 其他分享 >gitlab部署

gitlab部署

时间:2022-09-23 01:33:15浏览次数:51  
标签:__ 部署 root gitlab main rpm localhost

目录


gitlab部署

安装所需得包

[root@localhost yum.repos.d]# dnf -y install epel-release git openssh-server openssh-clients postfix cronie

设置postfix开机自启

[root@localhost yum.repos.d]# systemctl enable postfix
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /usr/lib/systemd/system/postfix.service.

安装gitlab

//由于版本原因要先卸载系统自带得policycoreutils包,还有安装他所依赖得policycoreutils-python
[root@localhost src]# rpm -e policycoreutils --nodeps
[root@localhost src]# rpm -ivh policycoreutils-python-2.5-34.el7.x86_64.rpm --nodeps
[root@localhost src]# rpm -ivh gitlab-ce-15.3.3-ce.0.el7.x86_64.rpm 
warning: gitlab-ce-15.3.3-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]

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

     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  
//修改配置文件
vim /etc/gitlab/gitlab.rb
external_url '192.168.124.138'
重启gitlab
[root@localhost src]# gitlab-ctl restart
[root@localhost src]# gitlab-ctl reconfigure
破解管理员密码
[root@localhost ~]# gitlab-rails console -e production
--------------------------------------------------------------------------------
 Ruby:         ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
 GitLab:       15.3.3 (c629a47f87f) FOSS
 GitLab Shell: 14.10.0
 PostgreSQL:   13.6
------------------------------------------------------------[ booted in 18.40s ]
Loading production environment (Rails 6.1.6.1)
irb(main):001:0> user = User.where(id: 1).first
=> #<User id:1 @root>
irb(main):002:0> user.password = 'liuyang123!'
=> "liuyang123!"
irb(main):003:0> user.password_confirmation = 'liuyang123!'
=> "liuyang123!"
irb(main):004:0> user.save!
=> true
irb(main):005:0> exit

在浏览器中用服务器得ip访问,email默认为root,密码为自己刚刚设置得密码

image-20220923010738417

主页图如下

image-20220923011603812

菜单如下

image-20220923011036732

管理页面

image-20220923011221619

标签:__,部署,root,gitlab,main,rpm,localhost
From: https://www.cnblogs.com/TQingS/p/16721380.html

相关文章

  • gitlab
    gitlab目录gitlabgitlab仓库管理系统gitlab特点gitlab部署gitlab仓库管理系统GitLab是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的......
  • gitlab
    版本控制gitlab目录1.版本控制介绍2.gitlab部署1.版本控制介绍版本控制是指对软件开发过程中各种程序代码、配置文件及说明文档等文件变更的管理,是软件配置管理的核......
  • 版本控制gitlab
    版本控制gitlab什么是版本控制gitlabGitLab是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的Web服务。安装方法是参考GitLab在GitHub上......
  • .NET 部署Https(SSL)通过代码方式
    在上一个文章中,传送门,给大家介绍了怎么在配置文件中使用 Kestrel部署Https,正好今天有小伙伴稳问到:可以通过代码的方式实现 Kestrel的Https的部署吗?答案是肯定的......
  • 版本控制gitlab
    版本控制gitlab目录版本控制gitlab什么是版本控制gitlabgitlab部署什么是版本控制gitlabGitLab是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上......
  • 【云原生】MySQL on k8s 环境部署
    目录一、概述二、开始部署(一主两从)1)添加源2)修改配置3)开始安装4)测试验证5)Prometheus监控6)卸载一、概述MySQL是一个关系型数据库管理系统,由瑞典MySQLAB公司开发,属于Ora......
  • 持续集成环境问题汇总(基于:java + testng + httpclient + allure + git + gitlab + jen
    说明包含前期调试遇到的问题 idea中,命令执行testng.xml,报错PleaserefertoD:\myjava\apiAutoTest\target\surefire-reportsfortheindividualtestresults.参考......
  • gitlab部署
    Gitlab部署//配置yum源[root@localhost~]#curl-o/etc/yum.repos.d/CentOS-Base.repohttps://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo[root@localhost......
  • minikube部署
    安装minikubecurl-LOhttps://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64sudoinstallminikube-linux-amd64/usr/local/bin/minikube......
  • helm部署redis-culster集群
    helm部署redis-culster集群安装helmwgethttps://repo.huaweicloud.com/helm/v3.8.0/helm-v3.8.0-linux-amd64.tar.gztar-zxfhelm-v3.8.0-linux-amd64.tar.gzmvlin......