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