centos:http://www.centos.org/download/
download:https://about.gitlab.com/downloads/
update:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update.md
trouble:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.mdhtml
以前使用gitlab原生的包安裝,升級過於麻煩,換成Omnibus就方便不少。linux
vmware簡易安裝linux系統,默認只能本身建立一個非root用戶(由於root用戶默認存在),因此你安裝好後,是無法使用root用戶登錄的。
進入超級用戶模式給root用戶設置密碼
[irving@localhost ~]$ su
Password:
橋接
1. ONBOOT=yes
2. 配置staticgit
[root@localhost network-scripts]# cat ifcfg-eno16777736 WADDR=00:0C:29:83:EF:27TYPE=Ethernet BOOTPROTO=static DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16777736 UUID=74fd9464-5ad3-4c73-861a-79f66df41231 ONBOOT=yes IPADDR0=10.200.66.10PRRFIXO0=16GATEWAY0=10.200.0.2DNS1=114.114.114.114[root@localhost network-scripts]#
yum update
yum -y install wget centos
curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el7.x86_64.rpm
sudo yum install openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo rpm -i gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el7.x86_64.rpmssh
sudo gitlab-ctl reconfigure
sudo firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests
sudo systemctl reload firewalldcurl
sudo gitlab-ctl status;
#配置external_url
Try specifying an external_url in /etc/gitlab/gitlab.rb. Also check your firewall settings; port 80 (HTTP) or 443 (HTTPS) might be closed on your GitLab server.gitlab
sudo gitlab-ctl reconfigurepost