下载新版本
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-15.11.2-ce.0.el8.x86_64.rpm/download.rpm
其中15.11.2为版本号,可修改为需要的版本号
安装前关闭一些服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
安装新版本
rpm -Uvh gitlab-ce-15.11.2-ce.0.el8.x86_64.rpm
修改一些配置
修改/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/sql/pattern.rb
文件
将MIN_CHARS_FOR_PARTIAL_MATCHING = 3
改为
MIN_CHARS_FOR_PARTIAL_MATCHING = 1
目的是解决搜索时候只有两个中文无搜索结果
启动服务
gitlab-ctl restart
参考