CENTOS7 installation and use of Gitlab

Source: Internet
Author: User

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.md

before using Gitlab (http://www.cnblogs.com/Irving/p/3733339.html) The original package installation, upgrade too troublesome, replaced by omnibus is much more convenient.

#安装CentOS

VMware easy to install Linux system, by default can only create a non-root user (because the root user exists by default), so after you install, you cannot use the root user login.
Enter super User mode to set the password for the root user
[email protected] ~]$ su
Password:
Bridge connection
1. Onboot=yes
2. Configure the static

[Email protected] network-scripts]#Catifcfg-eno16777736waddr=xx: 0C: in: the: EF: -TYPE=Ethernetbootproto=Staticdefroute=Yespeerdns=yespeerroutes=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_peerdns=yesipv6_peerroutes=Yesipv6_failure_fatal=NoNAME=Eno16777736uuid=74fd9464-5ad3-4c73-861a-79f66df41231onboot=yesIPADDR0=10.200.66.10PRRFIXO0= -GATEWAY0=10.200.0.2DNS1=114.114.114.114[[Email protected] network-scripts]#
#更新包

Yum Update
Yum-y Install wget

#下载安装

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.rpm

#配置

sudo gitlab-ctl reconfigure
sudo firewall-cmd--permanent--add-service=http # Open up the firewall for HTTP and SSH requests
sudo systemctl reload Firewalld

#查看运行情况

sudo gitlab-ctl status;
#配置external_url
Try specifying an External_url in/etc/gitlab/gitlab.rb. Also check your firewall settings; Port (HTTP) or 443 (HTTPS) might is closed on your GITLAB server.

#配置域名或IP生效

sudo gitlab-ctl reconfigure

Refer: http://www.osyunwei.com/archives/7829.html

CENTOS7 installation and use of Gitlab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.