Configure Gitlab 7.1x in CentOS/Debian to build a self-built Git Repository
Due to some historical reasons of the company, a lot of code is still on csv/svn. the new project has to go through this. At the same time, the enterprise 2500 $/y/10p price of github is not suitable for variable projects and personnel. in order to make some users do not get used to linux development and use git, they gave up the previous gitolite server and then built it using gitlab.
--------------------------------------------------------------------------------
Www.gitlab.com is the repository of gitlab. In previous versions, you must first configure gitolite and then Configure the server to support web functions. The new one-click package has been implemented.
-Download
Use the https://about.gitlab.com/downloads/ to select the desired version
Run the one-click script directly after wget.
This official version is very unfriendly. After one-click installation, nothing is configured. It has been configured for half a day and found that the repo address is still domain.com...
Gitlab also supports separate installation. You can specify the server and database. If you install seven processes one by one, it will be too cumbersome. so we changed the one-click package from bitnami.
Address in https://bitnami.com/stack/gitlab/installer
You can select 32 or 64bit based on the system. recommended version is recommended.
After downloading to the server, check whether port 80 of the server is occupied. Stop nginx or apache/httpd.
Transfer them to 808x. Here I will use gitlab with a complete domain name,
E. g: http://dev.domain.org
Delete the existing git account and git home directory before installation. Ensure that the system is clean.
[[Email protected] # wget https://downloads.bitnami.com/files/stacks/gitlab/7.11.4-0/bitnami-gitlab-7.11.4-0-linux-x64-installer.run
-- 19:31:19 -- https://downloads.bitnami.com/files/stacks/gitlab/7.11.4-0/bitnami-gitlab-7.11.4-0-linux-x64-installer.run
Resolving downloads.bitnami.com... 216.235.167.23
Connecting to downloads.bitnami.com | 216.235.167.23 |: 443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 311542012 (297 M) [application/x-makeself]
Saving to: "bitnami-gitlab-7.11.4-0-linux-x64-installer.run"
100% [============================================== ========================================================== ========================================================== ===========================================>] 311,542,012 2.06 M/s in 2 m 40 s
19:34:05 (1.86 MB/s)-"bitnami-gitlab-7.11.4-0-linux-x64-installer.run" saved [311542012/311542012]
[Root @ fca-vm-demo-opt] # chmod a + x bitnami-gitlab-7.11.4-0-linux-x64-installer.run
[Root @ fca-vm-demo-opt] #./bitnami-gitlab-7.11.4-0-linux-x64-installer.run
The installer detects that exists a 'git 'user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [Y/N]: y
The installer detects that exists a 'gitlab _ ci' user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [Y/N]: y
----------------------------------------------------------------------------
Welcome to the Bitnami Gitlab Stack Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
To install. Click Next when you are ready to continue.
PhpPgAdmin [Y/n]: Y
GitLab: Y (Cannot be edited)
GitLab CI [Y/n]: Y
Is the selection above correct? [Y/n]: Y
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install Bitnami Gitlab Stack
Select a folder [/opt/gitlab-7.11.4-0]:/opt/bitnami
----------------------------------------------------------------------------
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [[email protected]: [email protected]
Login [user]: rainysia
Password:
Please confirm your password:
----------------------------------------------------------------------------
Hostname that will be used to create internal URLs. If this value is incorrect,
You may be unable to access your Gitlab installation from other computers. It is
Advisable to use a Domain instead of an IP address for compatibility
Different browsers.
Domain [127.0.0.1]: dev.domain.org
Do you want to configure mail support? [Y/N]: N
----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.
Do you want to continue? [Y/n]: Y
----------------------------------------------------------------------------
Please wait while Setup instils Bitnami Gitlab Stack on your computer.
Installing
0% ______________ 50% ______________ 100%
######################################## #
----------------------------------------------------------------------------
Setup has finished installing Bitnami Gitlab Stack on your computer.
Info: To access the Bitnami Gitlab Stack, go
Http://dev.domain.org: 80 from your browser.
Press [Enter] to continue:
In this way, the installation is complete. In the middle, where problems are prone, the original git account, the home directories of each gitlab and git, And the gitlab directories under/var/opt. I have not set the mail server here.
Easy to use
There are several instructions for use,
Gitlab does not support initial repo, so you need to use an https: // git repository to import it.
After configuring the ssh key, it is in/profile/key e. g: http://dev.domain.org/profile/keys
Make sure that the ssh key of the user you want to use the repository is id_ras.pub key.
When pulling data, use [email protected]: username/project_name.git. If it is read, you can use http.
Because there are no other ports or Level 2 or level 3 domain names, you need to go through other ports and re-configure them in the domain name. the entire gitlab is under/opt/, where apps are applications and ctlscript. sh is the configuration to reset and restart the shell
Install GitLab on Ubuntu 12.04
GitLab 5.3 upgrade considerations
Deploy GitLab on CentOS (self-managed Git project repository)
Install GitLab 6.0.2 on RHEL6/CentOS6/ScientificLinux6
CentOS 6.5 GitLab installation tutorial and Related Problems
GitLab details: click here
GitLab: click here
This article permanently updates the link address: