Gitlab setup tutorial in CentOS7 environment, gitlabcentos7

Source: Internet
Author: User
Tags ssh access

Gitlab setup tutorial in CentOS7 environment, gitlabcentos7

1. install and configure necessary Dependencies

If you install a suffix to send an email, select "website. Instead of using the suffix, you can also use Sendmail or configure a custom SMTP server and configure an SMTP server.

In Centos 6 and 7, the following commands enable HTTP and SSH access to the firewall in the system.

Disable the firewall systemctl stop firewalld. service first. disable the firewall from enabling systemctl disable firewalld. service.
1.sudo yum install curl openssh-server openssh-clients postfix cronie2.sudo service postfix start3.sudo chkconfig postfix on4.sudo lokkit -s http -s ssh

If lokkit cannot find the command

yum install lokkit

2. Add the GitLab package server and installation package

You can download it and install it. Otherwise, it is particularly slow in centos environment. I installed a gitlab-ce-10.0.2-ce.0.el7.x86_64.rpm and copied it to centos.

Then directly execute Step 1

Install 5. curl-LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-XXX.rpm/download6.rpm-I gitlab-ce-10.0.2-ce.0.el7.x86_64.rpm -- force -- nodeps in centOS

3. Configure and start GitLab

sudo gitlab-ctl reconfigure

Direct access to centOS IP

Modify the gitlab repository address because the default address is localhost.

cd /opt/gitlab/embedded/service/gitlab-rails/config vim gitlab.yml  

Modify the modified address

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.