wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
# [root@localhost ~]# vim /etc/gitlab/gitlab.rb
#末行模式执行 /external_url/
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
#external_url 'http://gitlab.example.com'
#将url修改ip和端口或者域名
external_url 'http://192.168.56.11:80'
gitlab-ctl reconfigure
gitlab-ctl restart
http://192.168.56.11:80
# 命令备份 备份文件路径 /var/opt/gitlab/backups/1700647561_2023_11_22_13.12.15_gitlab_backup.tar
gitlab-backup create
# 手动备份
/etc/gitlab/gitlab-secrets.json
/etc/gitlab/gitlab.rb
gitlab-ctl stop
gitlab-ctl reconfigure
gitlab-ctl start
停止gitlab部分服务,保证恢复过程中有数据写入
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-rake gitlab:backup:restore BACKUP=1700647561_2023_11_22_13.12.15_gitlab_backup.tar
原文地址:https://blog.csdn.net/weixin_44623010/article/details/134559768
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_14065.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!