https://hostpresto.com/community/tutorials/how-to-install-and-setup-gitlab-on-centos-7/

http://linux.it.net.cn/CentOS/course/2016/0813/24330.html

http://linux.it.net.cn/CentOS/course/2015/0321/14033.html

https://www.nichijou.com/p/6sh26/

https://segmentfault.com/a/1190000002729796

http://www.cnblogs.com/wintersun/p/3930900.html

使用清华镜像源配置yum源:

vim /etc/yum.repos.d/gitlab.repo

[Gitlab-CE]

name=Gitlab CE

baseurl=https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/

enabled=1

gpgcheck=0

yum安装

yum install gitlab-ce –y

gitlab配置

vim /etc/gitlab/gitlab.rb

external_url ' #配置服务器IP地址或域名

#配置e-mail

gitlab_rails['time_zone'] = 'UTC'

gitlab_rails['gitlab_email_enabled'] = true

gitlab_rails['gitlab_email_from'] = 'gitlab2015@163.com'

gitlab_rails['gitlab_email_display_name'] = 'APICloud_Gitlab'

gitlab_rails['gitlab_email_reply_to'] = 'gitlab2015@163.com'

gitlab_rails['smtp_enable'] = true

gitlab_rails['smtp_address'] = "smtp.163.com"

gitlab_rails['smtp_port'] = 25

gitlab_rails['smtp_user_name'] = "gitlab2015@163.com"

gitlab_rails['smtp_password'] = "nxgfvizafijytymx"

gitlab_rails['smtp_domain'] = "163.com"

gitlab_rails['smtp_authentication'] = "login"

gitlab_rails['smtp_enable_starttls_auto'] = true

gitlab_rails['smtp_tls'] = false

gitlab_ci['smtp_enable'] = true

gitlab_ci['smtp_address'] = "smtp.163.com"

gitlab_ci['smtp_port'] = 25

gitlab_ci['smtp_user_name'] = "gitlab2015@163.com"

gitlab_ci['smtp_password'] = "nxgfvizafijytymx"

gitlab_ci['smtp_domain'] = "163.com"

gitlab_ci['smtp_authentication'] = "login"

gitlab_ci['smtp_enable_starttls_auto'] = true



重置配置,使修改生效

gitlab-ctl reconfigure



How to reset your root password

Log into your server with root privileges. Then start a Ruby on Rails console.

Start the console with this command:

  1. gitlab-rails console production

Wait until the console has loaded.

There are multiple ways to find your user. You can search for email or username.

  1. user = User.where(id: 1).first

or

  1. user = User.find_by(email: 'admin@local.host')

Now you can change your password:

  1. user.password = 'secret_pass'
  2. user.password_confirmation = 'secret_pass'

It's important that you change both password and password_confirmation to make it work.

Don't forget to save the changes.

  1. user.save!

Exit the console and try to login with your new password.

CentOS 7 Install Gitlab CE的更多相关文章

  1. try install gitlab ce at docker ce

    sudo docker run --detach \ --env GITLAB_OMNIBUS_CONFIG="external_url 'http://192.168.1.30:8087/ ...

  2. Docker install GitLab

    示范一下如何透过Docker安装GitLab,也顺便将一些常用的东西纪录一下 作业系统: CentOS 7 安装Docker CE 1. 先移除系统上预先安装的Docker旧版本 yum remove ...

  3. 基于CentOS 7 搭建 GitLab

    系统要求:CentOS 7.2 64 位操作系统 更新软件包 yum update -y 安装和启动 sshd 安装 sshd: yum install -y curl policycoreutils ...

  4. CentOS 7安装GitLab 11.4.5

    安装GitLab没必要像网上说的配置那么复杂,也不要自行编译安装,直接使用Omnibus版本即可,也就是综合安装包,注意如下几点: 1.不需要替换Nginx,直接使用GitLab的原生集成,同时这种方 ...

  5. CentOS 系统下Gitlab搭建与基本配置 以及代码备份迁移过程

    GitLab 是一个开源的版本管理系统,提供了类似于 GitHub 的源代码浏览,管理缺陷和注释等功能,你可以将代码免费托管到 GitLab.com,而且不限项目数量和成员数.最吸引人的一点是,可以在 ...

  6. 基于 CentOS 7 搭建 GitLab

    ⒈更新软件包 yum update -y ⒉安装 ssh服务并启动 yum install -y curl policycoreutils-python openssh-server systemct ...

  7. CentOS 6安装Gitlab

    1. 保证CentOS 6能连接网络 . 2.安装依赖: sudo yum install -y curl policycoreutils-python openssh-server cronie s ...

  8. CentOS 7下GitLab搭建及配置

    由于公司业务,需要上Git版本控制. * 目前市面上比较有名的Git服务提供商,国外有GitHub.BitBucket.GitLab,国内有码云,Coding. * 现有的服务商,对于免费的套餐都有一 ...

  9. CentOS 7 安装Docker CE

    本节内容: 背景 Moby项目 安装Docker CE 卸载Docker CE 一.背景 在搭建Registry的过程中,发现使用Docker 1.12版本,在push镜像到Registry时会报错误 ...

随机推荐

  1. php ci 报错 Object not found! The requested URL was not found on this server. If you entered the URL manually please check

    Object not found! The requested URL was not found on this server. The link on the referring page see ...

  2. linux查看文件夹大小,备份文件夹zip压缩解压

    linux查看文件夹大小,备份文件夹zip压缩解压 du -sh : 查看当前目录总共占的容量.而不单独列出各子项占用的容量 du -lh --max-depth=1 : 查看当前目录下一级子文件和子 ...

  3. Nginx能做什么

    本文只针对Nginx在不加载第三方模块的情况能处理哪些事情,由于第三方模块太多所以也介绍不完,当然本文本身也可能介绍的不完整,毕竟只是我个人使用过和了解到过得.所以还请见谅,同时欢迎留言交流. Ngi ...

  4. shell字符串操作技巧

    操作字符串 -------------- Bash支持超多的字符串操作,操作的种类和数量令人惊异.但不幸的是,这些工具缺乏集中性. 一些是参数替换的子集,但是另一些则属于UNIX的expr命令.这就导 ...

  5. Jquery获取敲击回车时光标所在的位置

    $(document).keyup(function(event){ ){ //是否是回车 var el = event.srcElement || event.target; var input_t ...

  6. win10 nodejs指定ionic版本安装(npm方式)

    步骤1 node-v6.11.3-x64.msi 下载安装node-v6.11.3-x64.msi, 安装完成后利用cmd通过npm安装 ionic cordova cmd npm install - ...

  7. uboot 网络驱动模型

    原文:https://blog.csdn.net/zhouxinlin2009/article/details/45390065 UBOOT的PHYCHIP配置 PHYCHIP的配置位于 includ ...

  8. STM32串口中断

    在打开串口1中断后 待机唤醒功能,(PA0唤醒)等 系统挺运行问题? ??(2014.11.13)

  9. python判断结构总结

    1.判断结构是允许程序针对不同情况执行不同指令序列的控制结构. 2.判断在Python中用if语句实现.简单的判断是用一个简单的if来实现的.两路判断通常使用if-else.多路判断用if-elif- ...

  10. Python3基础 break while循环示例

             Python : 3.7.0          OS : Ubuntu 18.04.1 LTS         IDE : PyCharm 2018.2.4       Conda ...