<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://techwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Install_Gitlab_CentOS_7</id>
	<title>Install Gitlab CentOS 7 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://techwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Install_Gitlab_CentOS_7"/>
	<link rel="alternate" type="text/html" href="http://techwiki.co.uk/index.php?title=Install_Gitlab_CentOS_7&amp;action=history"/>
	<updated>2026-04-29T08:09:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://techwiki.co.uk/index.php?title=Install_Gitlab_CentOS_7&amp;diff=176&amp;oldid=prev</id>
		<title>Adam.birds: Created page with &quot;=Gitlab Installation=  ==Prerequisites==  *Newly launched CentOS 7 Server *Reasonable Disk Specifications *Internet Connection *Domain Name with DNS pointing to the IP of the...&quot;</title>
		<link rel="alternate" type="text/html" href="http://techwiki.co.uk/index.php?title=Install_Gitlab_CentOS_7&amp;diff=176&amp;oldid=prev"/>
		<updated>2016-05-06T14:08:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Gitlab Installation=  ==Prerequisites==  *Newly launched CentOS 7 Server *Reasonable Disk Specifications *Internet Connection *Domain Name with DNS pointing to the IP of the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Gitlab Installation=&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
*Newly launched CentOS 7 Server&lt;br /&gt;
*Reasonable Disk Specifications&lt;br /&gt;
*Internet Connection&lt;br /&gt;
*Domain Name with DNS pointing to the IP of the server&lt;br /&gt;
&lt;br /&gt;
==Run Updates==&lt;br /&gt;
&lt;br /&gt;
It is good practice to update all of the software packages before we proceed. You can do this by running the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum upgrade -y&lt;br /&gt;
yum update -y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Server Hostname==&lt;br /&gt;
&lt;br /&gt;
To set the server hostname on CentOS 7 we can use the below commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hostnamectl set-hostname gitlab.example.com&lt;br /&gt;
hostnamectl set-hostname gitlab.example.com --static&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is then best practice to reboot the server with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install Software Dependencies==&lt;br /&gt;
&lt;br /&gt;
First of all we need to run the following set of commands to install the correct dependencies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo yum install curl policycoreutils openssh-server openssh-clients&lt;br /&gt;
sudo systemctl enable sshd&lt;br /&gt;
sudo systemctl start sshd&lt;br /&gt;
sudo yum install postfix&lt;br /&gt;
sudo systemctl enable postfix&lt;br /&gt;
sudo systemctl start postfix&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setup Repository==&lt;br /&gt;
&lt;br /&gt;
To setup the Gitlab Repository run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install Package==&lt;br /&gt;
&lt;br /&gt;
To install the package run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo yum install gitlab-ce&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure Gitlab==&lt;br /&gt;
&lt;br /&gt;
To run the Gitlab Configuration run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo gitlab-ctl reconfigure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Browse to Site and Login For First Time==&lt;br /&gt;
&lt;br /&gt;
On your first visit, you'll be redirected to a password reset screen to provide the password for the initial administrator account. Enter your desired password and you'll be redirected back to the login screen.&lt;br /&gt;
&lt;br /&gt;
The default account's username is '''root'''. Provide the password you created earlier and login. After login you can change the username if you wish.&lt;br /&gt;
&lt;br /&gt;
[[Category:Gitlab]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adam.birds</name></author>
		
	</entry>
</feed>