check version http://xxx.xxx.xxx.xxx/help
1. https://packages.gitlab.com/gitlab/gitlab-ce
2. example https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-9.5.4-ce.0.el7.x86_64.rpm
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce-9.5.4-ce.0.el7.x86_64 ps: https://docs.gitlab.com/omnibus/manual_install.html
3. http://sueboy.blogspot.com/2018/12/gitlab.html
sudo nano /etc/gitlab/gitlab.rb
可以在裡面找到external_url
sudo gitlab-ctl reconfigure
sudo gitlab-ctl status
4. open firewall
firewall-cmd –zone=public –add-port=80/tcp –permanent
firewall-cmd –list-all –permanent
5. backup restore
https://docs.gitlab.com/ee/raketasks/backup_restore.html
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md
6. upgrade
https://docs.gitlab.com/omnibus/update/
gitlab Maintenance Policy Upgrade recommendations
https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
9.5 to 10
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/9.5-to-10.0.md
================================
目前已經在測試環境模擬過,安全可行方式:
建立一台新的centos 灌gitlab 9.5.4,還原 目前9.5.4,確認是否能正常執行gitlab 開始升級 9.5.4 -> 11.
https://gist.github.com/avence12/70fc35963444d096d1bdb558b252327a
https://www.lightblue.asia/gitlab-backup-script/?doing_wp_cron=1545378263.6541728973388671875000
Change:
1. http token: kzy3x2TSeukztpvzBiYA token from gitlab Personal Access Token, Don’t use Account Private Tokens. Need to product Personal Access Token
GLAB_GIT_CLONE_CMD="git clone --quiet --mirror git@${GLAB_GITHOST}:" GLAB_GIT_CLONE_CMD="git clone --quiet --mirror http://oauth2:${GLAB_TOKEN}@${GLAB_GITHOST}/" PS:GLAB_TOKEN use in GLAB_PROJ_API, Personal Access Token or Account Private Tokens both is ok
REPO have bug:REPO have " must remove, so add line under
https://stackoverflow.com/questions/13570327/how-to-delete-a-substring-using-shell-script for REPO in $REPOLIST; do for REPO in $REPOLIST; do REPO=${REPO%\"} ALL
https://xenby.com/b/131-%E6%8E%A8%E8%96%A6-gitlab%E5%AE%89%E8%A3%9D%E8%88%87%E5%9F%BA%E6%9C%AC%E8%A8%AD%E5%AE%9A%E6%95%99%E5%AD%B8
https://gitlab.com/gitlab-org/gitlab-ce/#installation
sudo nano /etc/gitlab/gitlab.rb
可以在裡面找到external_url
sudo gitlab-ctl reconfigure
https://www.theguardian.com/info/2018/nov/30/bye-bye-mongo-hello-postgres
https://juejin.im/entry/5aec6ac46fb9a07ac3635884
如果你搜索OpenLDAP的安装指南,很不幸地告诉你,网上不管中文的英文的,90%都是错的,它们都还活在上个世纪,它们会告诉你要去修改一个叫做slapd.conf的文件,基本上看到这里,你就不用往下看了,这个文件早就被抛弃,新版的OpenLDAP里根本就没有这个文件!取而代之的是slapd.d的文件夹,然后另一部分教程会告诉你,让你修改这个文件夹下的某一个ldif文件,看到这里,你也不用往下看了,你又看到了伪教程,因为这个文件夹下的所有文件的第一行都明确地写着:『这是一个自动生成的文件,不要修改它!』你修改了它之后,它的md5校验值会匹配不上,造成更多的问题。你应该用ldapmodify来修改这个文件,而关于ldapmodify的教程,可以说几乎就没有!我一开始不知道面临这样荒谬的处境,很多运维人员是怎么活下来的,不过等我自己配通了以后,真的是累到连写教程的精力都没有了,好吧,我已经配通了,你们各人自求