首页 > 其他分享 >gitlab安装及汉化

gitlab安装及汉化

时间:2022-08-21 23:56:04浏览次数:61  
标签:0s ok 安装 gitlab 汉化 linux node1 root

gitlab的安装

 

首先在网上下载好任意版本gitlab的rpm包

推荐下面的地址:

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm

[root@linux-node1 ~]# rz -E

rz waiting to receive.

[root@linux-node1 ~]# ls

anaconda-ks.cfg gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm

[root@linux-node1 ~]# rpm -ivh gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm
#安装

Preparing... ################################# [100%]

Updating / installing...

1:gitlab-ce-8.8.5-ce.1.el7 ################################# [100%]

gitlab: Thank you for installing GitLab!

gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

 

sudo
gitlab-ctl reconfigure #配置并启动gitlab

 

gitlab: GitLab should be reachable at http://linux-node1 默认的访问地址

gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file #gitlab的配置文件,修改之后需要重新gitlab-ctl reconfigure

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.

[root@linux-node1 ~]#

 

 

 

gitlab的配置

 

这里我先修改下配置文件

vim /etc/gitlab/gitlab.rb #修改配置文件

修改结果如下:

[root@linux-node1 ~]# grep -n "^[a-Z]" /etc/gitlab/gitlab.rb

11:external_url 'http://192.168.56.11'

 

[root@linux-node1 ~]# gitlab-ctl reconfigure #配置并启动gitlab

 

打开浏览器输入http://192.168.56.11 #192.168.56.11我的本机ip

第一次登录要求设置root密码

登录成功之后,是这样的

 

 

gitlab的汉化:

 

[root@linux-node1 ~]# rz

[root@linux-node1 ~]# ls

anaconda-ks.cfg gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm gitlabhq.tar.gz

[root@linux-node1 ~]# tar xf gitlabhq.tar.gz

[root@linux-node1 ~]# ls

anaconda-ks.cfg gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm gitlabhq gitlabhq.tar.gz

 

###关于这个也可以直接git clone git clone https://github.com/larryli/gitlabhq.git

 

[root@linux-node1 ~]# cp -r /opt/gitlab/embedded/service/gitlab-rails{,.ori}

[root@linux-node1 ~]# gitlab-ctl stop

ok: down: gitlab-workhorse: 1s, normally up

ok: down: logrotate: 0s, normally up

ok: down: nginx: 0s, normally up

ok: down: postgresql: 1s, normally up

ok: down: redis: 0s, normally up

ok: down: sidekiq: 0s, normally up

ok: down: unicorn: 0s, normally up

[root@linux-node1 ~]# \cp -rf /root/gitlabhq/* /opt/gitlab/embedded/service/gitlab-rails/

cp: cannot overwrite non-directory '/opt/gitlab/embedded/service/gitlab-rails/log' with directory '/root/gitlabhq/log'

cp: cannot overwrite non-directory '/opt/gitlab/embedded/service/gitlab-rails/tmp' with directory '/root/gitlabhq/tmp'

#这里的错误,忽略,因为之前已经设置gitlab的root密码了

[root@linux-node1 ~]# gitlab-ctl start

ok: run: gitlab-workhorse: (pid 25910) 0s

ok: run: logrotate: (pid 25914) 0s

ok: run: nginx: (pid 25920) 1s

ok: run: postgresql: (pid 25925) 0s

ok: run: redis: (pid 25933) 1s

ok: run: sidekiq: (pid 25937) 0s

ok: run: unicorn: (pid 25941) 0s

 

汉化完成之后的效果

 

 

注意事项

 

汉化之后,不要进行版本升级,很容易出现502!切记!还有生产环境中,尽量用域名,迁移方便

标签:0s,ok,安装,gitlab,汉化,linux,node1,root
From: https://www.cnblogs.com/khstudy/p/16611451.html

相关文章

  • Win安装目录
    Win安装目录来源 https://www.zhihu.com/question/546008367/answer/2637694531 C:\ProgramFiles,64位的软件安装目录,所有用户都能使用,程序安装到这里需要管理员权限......
  • redis安装脚本
    #!/bin/bash#-*-codeing=utf-8-*-#@Time:2021/11/722:11#@Author:xiaoguaishou#@File:redis_install.sh#@Software:PyCharm#1.设置redis安装目录......
  • mycat读写分离、mysql主从的安装
    数据库安装手册目录数据库安装手册1、数据库安装1.1环境准备1.1.1关闭selinux1.1.2修改主机名1.1.3域名解析1.1.3时间同步1.2mysql安装1.2.1二进制包上传至服务器......
  • CentOS7 安装MySQL教程
    【0】保持网络畅通【1】查看是否已安装MySQLrpm-qa|grepmysql下面是我的操作,可见没有安装MySQL,那么直接进入【2】如果查看出来有东西,可以使用下面命令将其删除(x......
  • Altium Designer 20软件安装包下载及安装教程
    AltiumDesigner20软件安装包下载及安装教程AltiumDesigner20软件简介:AltiumDesigner20是一款由Altium开发团队全新推出的简单易用,与时俱进,功能强大的PCB设计软件,可......
  • yum离线安装rpm和依赖包
    离线安装说明      通常生产环境由于安全原因都无法访问互联网.此时就需要进行离线安装,主要有两种方式:源码编译、rpm包安装。源码编译耗费时间长且缺乏编译环......
  • Golang的IDE的安装
    Golang的IDE的安装Goland是一款由JetBrains公司开发的软件,使用他可以大大提高程序员开发Go代码的效率,因为Goland内部提供了编辑器、调试器和图形用户界面等很多方便的功......
  • windows make安装
    windowsmake安装1.1下载包网址:https://osdn.net/projects/mingw/releases/2.1安装双击后进入安装页面我更改了安装路径,默认C盘等待他自己下载安装包3.1设......
  • Linux 基于源码安装 Redis
    1.下载Redis:前往Redis官网复制Redis相应版本的下载链接,到终端下载2.进入到指定目录,下载redis.tar.gz包,运行wget+复制的下载链接 例如:wgethttps://d......
  • crossover在mac安装KeyGen.exe注册机的方法
    Mac上一些应用的正常使用,如果想要运行windows的exe程序,可以借助crossover软件,今天为您带来crossover在mac安装KeyGen.exe注册机的方法。crossover在mac安装KeyGen.exe注册......