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
备份
#如果在/etc/gitlab/gitlab.rb 文件配置了参数“backup_path”
#(例如gitlab_rails['backup_path'] = '/backup'),则备份的目录就是该目录下(/backup/)
#如果没有配置参数“backup_path”,则gitlab把备份文件生成到默认目录/var/opt/gitlab/backups。
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 组件;
gitlab-ctl stop # 停止所有 gitlab 组件;
gitlab-ctl restart # 重启所有 gitlab 组件;
gitlab-ctl status # 查看服务状态;
gitlab-ctl reconfigure # 启动服务;
vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab;
gitlab-ctl tail # 查看日志;
gitlab-ctl start postgresql #启动单个服务
本作品采用《CC 协议》,转载必须注明作者和本文链接