gitlab升级、汉化、修改root密码
1.gitlab升级
# 查看当前版本
head -1 /opt/gitlab/version-manifest.txt
gitlab-ce 8.9.5
grep "^external_url" /etc/gitlab/gitlab.rb
external_url 'http://10.0.0.26'
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm # 关闭部分gitlab服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
rpm -Uvh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
报错,10.x以后开始依赖policycoreutils-python,之前在使用9.x时还没有依赖该项
policycoreutils-python is needed by gitlab-ce-10.0.4-ce.0.el7.x86_64
yum -y install policycoreutils-python rpm -Uvh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
gitlab preinstall: Your version of PostgreSQL is no longer supported.
Please upgrade your PostgreSQL version
信息选自GIitLab官网:
从版本10.0开始,GitLab要求PostgreSQL的版本为9.6或更高;对于运行8.15以下版本的用户,这意味着他们必须首先升级到9.5,其中PostgreSQL将自动更新为9.6.
对于运行8.15以下版本的用户,这意味着他们必须首先升级到9.5,其中PostgreSQL将自动更新为9.6.
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm
rpm -Uvh gitlab-ce-9.5.9-ce.0.el7.x86_64.rpm gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
# 注意:不能把服务全部关闭,尤其是pgsql,gitlab要去备份数据,得连上数据库,除非你跳过备份
touch /etc/gitlab/skip-auto-migration # 接下来就可以开始正式安装了
rpm -Uvh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl restart # 等待30s访问网页
2.汉化
想下载老版本的汉化包,用这条命令:
git clone https://gitlab.com/xhang/gitlab.git -b v10.0.2-zh
# 克隆获取汉化版本库
git clone https://gitlab.com/xhang/gitlab.git
cat gitlab/VERSION # 但我的gitlab版本是10.0.4
11.5.7
gitlab-ctl stop
cd /root/gitlab
git diff v10.0.4 v10.0.4-zh > ../10.0.4-zh.diff
yum -y install patch
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 10.0.4-zh.diff
gitlab-ctl start # 想第二次汉化时,比如生成了一个10.0.6-zh.diff,导入时会各种报错
界面:

3.忘记root密码
gitlab-rails console production
user = User.where(id: 1).first
user.password='yourpassword' # 密码必须至少8个字符
user.save! # 修改成功会返回true
quit # 目前root密码是root-root123456789
关联LDAP可以去这个-大牙啊:http://blog.51cto.com/13520772/2133739
关联LDAP-粽先生:https://www.cnblogs.com/straycats/p/7487780.html#top
升级参考博文:https://www.ilanni.com/?p=13917
gitlab升级-粽先生:https://www.cnblogs.com/straycats/p/7707359.html
gitlab升级、汉化、修改root密码的更多相关文章
- centos7安装gitlab并汉化
一.基础环境准备 1.安装依赖包 [root@gitlab-server ~]#yum install curl policycoreutils openssh-server openssh-clie ...
- CentOS7安装GitLab、汉化及使用
同步首发:http://www.yuanrengu.com/index.php/20171112.html 一.GitLab简介 GitLab是利用Ruby On Rails开发的一个开源版本管理系统 ...
- CentOS7安装GitLab、汉化、邮箱配置及使用
同步首发:http://www.yuanrengu.com/index.php/20171112.html 一.GitLab简介 GitLab是利用Ruby On Rails开发的一个开源版本管理系统 ...
- CentOS7安装GitLab、汉化、邮箱配置及使用(转载)
同步首发: https://www.cnblogs.com/heyonggang/p/7778203.html http://www.yuanrengu.com/index.php/20171112. ...
- centos安装gitlab及汉化
GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务.今天,就记录一下centos部署gitlab及其汉化的操作方法. 1.下载安装 下载地址: ...
- mysql8数据库修改root密码,以及创建用户遇到的坑,开启远程登录,用navicat进行mysql的远程连接,mysql8.0默认编码方式,部分参数配置查询命令
yum 安装MySQL8 echo "删除系统默认或之前可能安装的其他版本的 mysql" for i in $(rpm -qa|grep mysql);do rpm -e $i ...
- RedHat/Centos修改root密码
Linux主机忘记密码,只要你能接触物理主机都可以修改root密码的! Redhat6.x 5.x / Centos6.x 5.x 01.开机-空格/enter 02.e-编辑模式 CentO ...
- ansible非root用户批量修改root密码
前言: 由于线上服务器密码长久没有更新,现领导要求批量更换密码.线上的之前部署过salt,但由于各种因素没有正常使用. 使用自动化工具批量修改的计划搁浅了,后来领导给了个python多线程修改密码脚本 ...
- phpmyadmin修改root密码
很多人利用phpmyadmin或者命令行来修改了mysql的root密码,重启 后发现mysql登录错误,这是为什么呢?修改mysql的root的密码要在mysql软件中mysql数据库里修改root ...
- mysql修改root密码和设置权限
整理了以下四种在MySQL中修改root密码的方法,可能对大家有所帮助! 方法1: 用SET PASSWORD命令 mysql -u root mysql> SET PASSWORD FOR ' ...
随机推荐
- python爬虫基础09-selenium大全3/8-Remote Webdriver
Selenium笔记(3)Remote Webdriver 本文集链接:https://www.jianshu.com/nb/25338984 简介 selenium.webdriver.remote ...
- 中国电信物联网平台入门学习笔记2: DOME程序分析
"墨子号NB-IOT开发板"提供的dome: 程序只要分为延时,定时器,串口通讯…… 工程文件在:…\STM32L1xx_StdPeriph_Lib_V1.3.1\Project\ ...
- Android工具 Hierarchy Viewer 分析
Hierarchy Viewer是随AndroidSDK发布的工具,位置在tools文件夹下,名为hierarchyviewer.bat.它是Android自带的非常有用而且使用简单的工具,可以帮助我 ...
- xcode8.1 autolayout 找不到 Update Frames 按钮
- Selenium WebDriver-模拟鼠标双击某个元素
#encoding=utf-8 import unittest import time import chardet from selenium import webdriver class Visi ...
- Flask_配置文件
flask中的配置文件是一个flask.config.Config对象(继承字典),默认配置为: default_config = ImmutableDict({ 'DEBUG': get_debug ...
- 《机器学习实战》笔记——AdaBoost
笔记见备注 # _*_ coding:utf-8 _*_ from numpy import * # 简单数据集 def loadSimpData(): datMat = matrix([[1., 2 ...
- 读懂diff(转载)
作者: 阮一峰 日期: 2012年8月29日 diff是Unix系统的一个很重要的工具程序. 它用来比较两个文本文件的差异,是代码版本管理的基石之一.你在命令行下,输入: $ diff <变动前 ...
- Welcome-to-Swift-12附属脚本(Subscripts)
附属脚本 可以定义在类(Class).结构体(structure)和枚举(enumeration)这些目标中,可以认为是访问对象.集合或序列的快捷方式,不需要再调用实例的特定的赋值和访问方法.举例来说 ...
- 【bzoj3513】[MUTC2013]idiots FFT
题目描述 给定n个长度分别为a_i的木棒,问随机选择3个木棒能够拼成三角形的概率. 输入 第一行T(T<=100),表示数据组数. 接下来若干行描述T组数据,每组数据第一行是n,接下来一行有n个 ...