

GitLab is fairly easy to install and incredibly simple to use. GitLab allows you to host an on-premise Git repository that can be accessed from either your local LAN or (if you have an available public IP address) from outside your company. So when you want to host your own repositories, where do you turn? You can certainly opt to go with GitHub, but that negates the ability to host locally. If you’re a Git user, you know that having local repositories that can be accessed via a local LAN (or external WAN) is a crucial element of the development process. For more info, visit our Terms of Use page. This may influence how and where their products appear on our site, but vendors cannot pay to influence the content of our reviews. We may be compensated by vendors who appear on this page through methods such as affiliate links or sponsored partnerships. Jack Wallen shows you how to set up your own GitLab server, so you can enjoy the power and flexibility of a LAN (or WAN) based Git repository. The user name of the root account is "root".How to set up a GitLab server and host your own Git repositories It transitions to the login window after a successful password registration.

Will be registered as a password for the root account. You will be prompted to change the password when the first time you access GitLab using a web browser. Use a web browser to check that GitLab starts.Reconfigure and restart GitLab: # gitlab-ctl reconfigure.A INPUT -m state -state NEW -m tcp -p tcp -dport 80 -j ACCEPT Add it immediately after the 22/tcp description. In /etc/sysconfig/iptables add the text below to allow connection to 80/tcp. Register the port to be used by GitLab to iptables (firewall).

After: external_url ' %fqdnOrIpAddrOfVmThatStartsGitlab%'.Start the services required for operation. #inet_interfaces = $myhostname, localhost If the command returns "Enforcing", then update inet_interfaces in /etc/postfix/main.cf as follows: #inet_interfaces = all Start the services required for operation.įirst, check the SELinux settings.Install dependent packages such as OpenSSH: # yum install curl openssh-server postfix cronie openssh-clients git.

Perform the procedure below as the root user. Refer to the GitLab official site ( ) to install GitLab.
