Gitlab _ Server Installation configuration and gitlab installation Configuration

Source: Internet
Author: User

Gitlab _ Server Installation configuration and gitlab installation Configuration

1. Open the firewall port

1.Sudo yum install curl openssh-server openssh-clients postfix cronie-y

2.AddGitLabRepository and install it on the server

3.It may take a long time to start GitLab and wait patiently.

    Sudo gitlab-ctl reconfigur

4. Local accessGitLab

5. Modify the ip address and default port as needed

  Vim/etc/gitlab. rb

  External_url 'HTTP: // localhost: 90'

After modification, remember to restart the service.

6. gitlab basic operation commands:

7. Force modify the default gitlab user name and password

Gitlab-rails console production wait patiently until loading is complete

User = User. where (id: 1). The first root user is 1 by default.

User. password = 'secret _ pass' user. password_confirmation = 'secret _ pass'

User. save! Save

  After modification, remember to restart the service.

8:Install the git image under docker

Sudo docker pull gitlab/gitlab-ce: latest download gitlab

 

Start git Image Service

{Docker run -- detach \

-- Hostname {host }\

-- Publish 443: 443 -- publish 80: 80 -- publish \

-- Name gitlab \

-- Restart always \

-- Volume/srv/gitlab/config:/etc/gitlab \

-- Volume/srv/gitlab/logs:/var/log/gitlab \

-- Volume/srv/gitlab/data:/var/opt/gitlab \

Gitlab/gitlab-ce: latest}

Visit gitlab locally ~

After git deployment, the default user name and password areRoot/5 iveL! Fe

Test and Development Communication Group 317765580

 

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.