1.参考官方安装指南

https://about.gitlab.com/install/#centos-7

2.遇到的问题

2.1.启动postfix出错

错误内容

Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.

查看出错命令

 systemctl status postfix.service

错误内容

● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 -- :: CST; 22s ago
Process: ExecStart=/usr/sbin/postfix start (code=exited, status=/FAILURE)
Process: ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=/SUCCESS)
Process: ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=) 7月 :: 172.16.1.187 aliasesdb[]: /usr/sbin/postconf: warning: valid_hostname: numeric hostname: 172.16.1.187
7月 :: 172.16.1.187 aliasesdb[]: /usr/sbin/postconf: fatal: unable to use my own hostname
7月 :: 172.16.1.187 aliasesdb[]: newaliases: warning: valid_hostname: numeric hostname: 172.16.1.187
7月 :: 172.16.1.187 aliasesdb[]: newaliases: fatal: unable to use my own hostname
7月 :: 172.16.1.187 postfix[]: warning: valid_hostname: numeric hostname: 172.16.1.187
7月 :: 172.16.1.187 postfix[]: fatal: unable to use my own hostname
7月 :: 172.16.1.187 systemd[]: postfix.service: control process exited, code=exited status=
7月 :: 172.16.1.187 systemd[]: Failed to start Postfix Mail Transport Agent.
7月 :: 172.16.1.187 systemd[]: Unit postfix.service entered failed state.
7月 :: 172.16.1.187 systemd[]: postfix.service failed.

执行命令

vim /etc/postfix/main.cf

在main.cf文件里加入

myhostname = mail.mydomain.com

重新执行启动postfix命令

sudo systemctl start postfix

2.2修改ip与port

安装官方安装步骤执行命令后

sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce

修改配置文件

sudo vim /etc/gitlab/gitlab.rb

修改或者添加

unicorn['port']=
external_url 'http://172.16.1.144:9000'

执行重启命令

gitlab-ctl reconfigure
gitlab-ctl restart

访问地址

http://172.16.1.144:9000/

 3.汉化(待解决)

汉化地址:https://gitlab.com/xhang/

这是一个gitlab仓库地址可以下载gitlab的安装包,和带gitlab中文的安装包。因为我安装的gitlab是12.1.1,上面最新的是12.0.4,没有找到对应版本。

附几个汉化的博客,其处理思路基本为将/opt/gitlab/embedded/service/gitlab-rails/路径下的内容替换为汉化版本的。

https://www.cnblogs.com/cheng95/p/8037865.html

https://www.cnblogs.com/heyonggang/p/7778203.html

https://www.cnblogs.com/eos666/p/8858882.html

redhat7.4安装gitlab的更多相关文章

  1. CentOS安装gitlab,gerrit,jenkins并配置ci流程

    CentOS安装gitlab,gerrit,jenkins并配置ci流程 By Wenbin juandx@163.com 2016/4/9 这是我参考了网上很多的文档,配置了这三个软件在一个机器上, ...

  2. CentOS安装gitLab服务器

    首先利用gitlab-install-el6.sh安装,比较简单: (出处:http://www.linuxidc.com/Linux/2013-06/85754.htm) 1:如果有条件,提供一台全 ...

  3. Centos6安装Gitlab

    安装参考 https://about.gitlab.com/downloads/ 可以从清华的镜像下载安装包, 注意区分自己用的是哪个发行版 https://mirror.tuna.tsinghua. ...

  4. centos 6.5 6.6 6.7安装gitlab教程(社区版)

    简单的说安装gitlab就两种办法主要介绍第一种:官网推荐的方法: 1.新建yum源 新建 /etc/yum.repos.d/gitlab-ce.repo,内容为 [gitlab-ce] name=g ...

  5. Mac安装GitLab CE记录

    0 REF REF1 原始的GitLab Documentation REF2 Installation-guide-for-GitLab-on-OS-X REF3 如何在Mac 终端升级ruby版本 ...

  6. Docker安装Gitlab

    一.Ubuntu16.4上Docker安装Gitlab 1.安装docker 参见:https://docs.docker.com/engine/installation/linux/ubuntuli ...

  7. centos 6.5安装GitLab全过程和问题记录

    GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. 官方只提供了Debian/Ubuntu系统下的安 ...

  8. Ubuntu 14.04下安装GitLab指南

    摘要 GitLab 是一个用于仓库管理系统的开源项目.使用Git作为代码管理工具,并在此基础上搭建起来的web服务. 在GitLab的官方网站上面对Ubuntu的支持也是很好的,有比较详尽的安装指南. ...

  9. ubuntu 16.04.2 源码安装gitlab并且利用runner持续集成

    参考原档:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#using-https 本章只 ...

随机推荐

  1. Asp.Net Core 2.0 之旅---@Html.Action

    原文:Asp.Net Core 2.0 之旅---@Html.Action 版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明. 本文链接:https: ...

  2. MQTTnet 3.0.5学习笔记

    段时间在使用MQTTnet,都说这个东西比较好,可是翻了翻网上没有例子给参考一下. 今天算是找到了,给高手的帖子做个宣传吧. 原网址如下:https://blog.csdn.net/chenlu520 ...

  3. HighChart 不同颜色(柱状图)

    var chart = new Highcharts.Chart({ chart: { plotBackgroundColor: null, plotBorderWidth: null, backgr ...

  4. SpringCloud之Config配置中心+BUS消息总线原理及其配置

    一.配置中心作用 在常规的开发中,每个微服务都包含代码和配置.其配置包含服务配置.各类开关和业务配置.如果系统结构中的微服务节点较少,那么常规的代码+配置的开发方式足以解决问题.当系统逐步迭代,其微服 ...

  5. openstack安装部署——计算服务(控制节点&计算节点)前言

    1.前言Openstack计算服务通过认证服务获取认证:通过镜像服务获取镜像:通过仪表盘提供的用户界面与用户交互.镜像的存取受工程和用户的限制,配额受工程的限制(例如不同工程允许虚拟机实例数量不同). ...

  6. 【leetcode】566. Reshape the Matrix

    原题 In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a ne ...

  7. BZOJ 3716 [PA2014]Muzeum 贪心SET最大闭合子图

    看上去像是一个最大权闭合子图裸题但是数据太大 我们可以先把守卫的视野转换到第二象限(每个守卫可以看到横坐标比他小 纵坐标比他大的宝物) 然后按X从小到大 再按Y从大到小排 这样我们就可以按SORT序遍 ...

  8. Android-File读写+SharedPreferences的存取地址

    写了两个demo,一个是使用SharedPreferences将数据存储在应用文件中并读取,另一个是使用Context的openFileOutput和openFileInput将数据存储在应用文件中并 ...

  9. JAVA遇见HTML——Servlet篇:应用MVC架构实现项目

    java关键字“this”只能用在方法方法体内.当一个对象创建之后,java虚拟机就会给这个对象分配一个引用自身的指针,这个指针的名字就是this.只能在非静态方法中使用 package servle ...

  10. python_网络编程socketserver模块实现多用户通信

    服务端: import socketserver class MyServer(socketserver.BaseRequestHandler): def handle(self): #在这个函数里面 ...