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. Unable to open nested entry '********.jar' 问题解决

    今天把现网版本的task的jar拖回来然后用7-zip打开拖了一个jar进去替换mysql-connector-java-5.1.47.jar  为  mysql-connector-java-5.1 ...

  2. 3d转化

    3d转化 想要实现3d效果,首先要确定的是观察点,这是2d转换所不需要的.具体的我也看的很糊涂,美术什么的根本不懂好吗. 但有些东西是确定的,perspective定义的是3d元素距视图的距离,因此像 ...

  3. 【转载】salesforce 零基础开发入门学习(三)sObject简单介绍以及简单DML操作(SOQL)

    salesforce 零基础开发入门学习(三)sObject简单介绍以及简单DML操作(SOQL)   salesforce中对于数据库操作和JAVA等语言对于数据库操作是有一定区别的.salesfo ...

  4. redis数据结构分析 (redisObject、SDS)

    redis是一个key-value储存系统.和Memcached类似,它支持存储的value类型相对更多,包括string(字符串).list(链表).set(集合).zset(sorted set ...

  5. 面试总结关于Spring面试问题(精选)

    1.什么是Spring? Spring是一个反转控制IOC和AOP的开发框架和平台. 2.解释一下Spring? 轻量 : Spring 在大小和透明度上是轻量的,Spring基本核心版本大概只有1M ...

  6. springboot 部署到tomcat,获取根路径问题。空格变为%20

    String path = ResourceUtils.getURL("classpath:").getPath()+"static/upload"; Syst ...

  7. linux 基础12-程序与资源管理

    1. 基础概念 可执行的二进制文件就是程序 执行程序的时候因触发事件而获取的ID,称为PID 在登入并执行bash时,系统依据登录者的UID/GID给登录者一个PID/GPID/SID等 启动程序时, ...

  8. MacOS下安装unicorn这个库失败

    因为在Mac下安装pwntools,发现安装unicorn库的时候失败了,编译报错如下 make: *** [qemu/config-host.h-timestamp] Error 1 error: ...

  9. RT-Thread--内核基础

    内核介绍 内核处于硬件层之上,内核部分包括内核库.实时内核实现. 实时内核的实现包括:对象管理.线程管理及调度器.线程间通信管理.时钟管理及内存管理等等,内核最小的资源占用情况是 3KB ROM,1. ...

  10. vue-cli webpack打包后index.html引入文件没有引号

    参考地址:https://blog.csdn.net/i_coffer/article/details/81005733 在对vue-cli项目打包后出现index.html引入的css和js没有引号 ...