安装:
0 1 2 3 4 5 6 7 8 9 10 11 12 |
$ sudo yum install -y curl policycoreutils-python openssh-server $ sudo systemctl enable sshd $ sudo systemctl start sshd $ sudo firewall-cmd --permanent --add-service=http $ sudo systemctl reload firewalld $ sudo yum install postfix $ sudo systemctl enable postfix $ sudo systemctl start postfix $ wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.15.1-ce.0.el7.x86_64.rpm $ rpm -ivh gitlab-ce-8.15.1-ce.0.el7.x86_64.rpm $ gitlab-ctl reconfigure |
备份:
0 1 2 |
$ gitlab-rake gitlab:backup:create $ find / -name "1540217731_2018_10_22_9.5.4_gitlab_backup.tar" /var/opt/gitlab/backups/1540217731_2018_10_22_9.5.4_gitlab_backup.tar |
恢复:SourceByrd's Weblog-https://note.t4x.org/basic/gitlab-install-backup-recover/
0 1 2 |
$ gitlab-rake gitlab:backup:restore BACKUP=1540217731_2018_10_22_9.5.4 $ pwd /var/opt/gitlab/backups |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!