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
sudo systemctl restart gitlab-runsvdir
#!/bin/sh
gitlab-ctl stop
rpm -e gitlab-ce-8.8.0-ce.0.el7.x86_64
ps -ef|grep gitlab
kill -9 .....
find / -name gitlab |xargs rm -rf
rpm -i gitlab-ce-8.8.0-ce.0.el7.x86_64
vi /etc/gitlab/gitlab.rb
systemctl restart gitlab-runsvdir
gitlab-ctl reconfigure
mkdir /var/opt/gitlab/gitlab-rails/shared/registry
chown git /var/opt/gitlab/gitlab-rails/shared/registry
cd /var/opt/gitlab/backups/
gitlab-rake gitlab:backup:restore BACKUP=1553158881
gitlab-rake gitlab:env:info
gitlab-ctl tail
安装centos7
桥接网卡
修改dhcp,boot=yes
增加dns=223.5.5.5
systemctl stop NetworkManager