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 ' ...
随机推荐
- 【mysql】【转发】Cannot proceed because system tables used by Event Scheduler were found damaged at server start
本地:mac 10.12.3 mysql 5.6 远程:linux 7.3 mysql 5.7.18. (远程数据库yum安装,又5.6升级到5.7) 步骤:从本地数据库导出数据到远 ...
- EditPlus 比较完整的快捷键记录
FileFtpUpload Ctrl+Shift+S 上传文件到FTP 服务器 FileNew Ctrl+N 新建普通的文本文档 FileNewHtml Ctrl+Shift+N 创建一个空白的 HT ...
- 线段树: CDOJ1598-加帕里公园的friends(区间合并,单点更新)
加帕里公园的friends Time Limit: 3000/1000MS (Java/Others) Memory Limit: 131072/131072KB (Java/Others) 我还有很 ...
- Linux优化总结
1)netstat (*****)查看网络状态lntup或an 1.[listening|-l] 2.[--numeric|-n] 3.[--tcp|-t] 4.[--udp|-u] 5[--prog ...
- CodeForces 570D DFS序 树状数组 Tree Requests
参考九野巨巨的博客. 查询一个子树内的信息,可以通过DFS序转成线形的,从而用数据结构来维护. #include <iostream> #include <cstdio> #i ...
- loj2031 「SDOI2016」数字配对
跑最大费用最大流,注意到每次 spfa 出来的 cost 一定是越来越少的,啥时小于 \(0\) 了就停了吧. #include <iostream> #include <cstri ...
- Selenium WebDriver- 操作浏览器的cookie
#encoding=utf-8 import unittest import time from selenium import webdriver from selenium.webdriver i ...
- Selenium WebDriver-通过键盘事件操作浏览器
#encoding=utf-8 import unittest import time import chardet from selenium import webdriver class Visi ...
- Andorid 生成NDK动态链接库 .so库
.so库第一次见到是在搜索Android保存静态秘钥等特殊id字段做法时看到的-通过NDK的方式将静态秘钥保存在so文件中, 关于原生开发工具包(NDK)详细见官网指南要更详细,这里我记录我度娘各种结 ...
- 数据库导入Exel,输入到浏览器
db.php <?php require dirname(__FILE__)."/dbconfig.php";//引入配置文件 class db{ public $conn= ...