centos7 安装 gitlab-ce-11.6

安装

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.6.0-ce.0.el7.x86_64.rpm

yum install policycoreutils-python

rpm -i gitlab-ce-11.6.0-ce.0.el7.x86_64.rpm

vi /etc/gitlab/gitlab.rb   修改external_url 'http://192.168.31.204' 访问地址

gitlab-ctl reconfigure

gitlab-ctl restart

gitlab-ctl status

sudo firewall-cmd --zone=public --add-port=80/tcp --permanent

sudo firewall-cmd --reload

备份 转自 https://www.cnblogs.com/kevingrace/p/7821529.html

  • 中途报错,解决方法,如下:
    mkdir /var/opt/gitlab/gitlab-rails/shared/registry
    chown git /var/opt/gitlab/gitlab-rails/shared/registry

恢复,会清空原来

gitlab-ctl stop unicorn

gitlab-ctl stop sidekiq

默认备份路径/var/opt/gitlab/backups,20190321_1553158881_gitlab_backup.tar

gitlab-rake gitlab:backup:restore BACKUP=20190321_1553158881

卸载 转自 https://blog.csdn.net/huhuhuemail/article/details/80519433

猜你喜欢

转载自www.cnblogs.com/laofeng2015/p/10628768.html