下載
下載適合自己的gitlab安裝包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.3-ce.0.el7.x86_64.rpm
安裝
rpm -ivh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
gitlab-ctl reconfig
備份
gitlab-rake gitlab:backup:create
恢復
gitlab-rake gitlab:backup:restore BACKUP=備份檔案gitlab_backup.tar前面的數字
升級
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
解除安裝
gitlab-ctl stop
rpm -e gitlab-ce
ps aux | grep gitlab
kill
rm -rf /opt/gitlab
rm -rf /etc/gitlab
rm -rf /var/log/gitlab
其它
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart
gitlab-ctl status
gitlab-ctl reconfigure
vim /etc/gitlab/gitlab.rb
gitlab-rake gitlab:check SANITIZE=true --trace
gitlab-ctl tail
gitlab-ctl start postgresql
本作品採用《CC 協議》,轉載必須註明作者和本文連結