You are on page 1of 4

Instalar GitLab en CentOs

1.- Install and configure the necessary dependencies

On CentOS, the commands below will also open HTTP and SSH access in
the system firewall.

yum install curl policycoreutils openssh-server openssh-clients -y


systemctl enable sshd
systemctl start sshd
yum install postfix -y
systemctl enable postfix
systemctl start postfix
// No utilizar el firewalld, sino que ip tables
//firewall-cmd --permanent --add-service=http
//systemctl reload firewalld

2.- Add the GitLab package server and install the packag

curl -sS
https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.r
pm.sh | bash

yum install gitlab-ce -y

3. Configure and start GitLab


gitlab-ctl reconfigure

4.- Set the port

vim /etc/gitlab/gitlab.rb

1. Change external_url from ​yourdomain.com​ to ​yourdomain.com:8081

2. 8081​ -> Port you want it to run


3. gitlab-ctl reconfigure
4. gitlab-ctl restart

First, you should disable selinux, edit file

/etc/sysconfig/selinux so it looks like this:

SELINUX=disabled

SELINUXTYPE=targeted

reboot -h now

Abrir puertos console google compute engine

Abrir puertos en iptables centos < 7

yum install iptables-services

iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j ACCEPT


iptables -A INPUT -m state --state NEW -p tcp --dport 8081 -j ACCEPT

service iptables save

service iptables restart

iptables -L -n

Revisar si los puertos están abiertos

nmap 104.154.195.168

Starting Nmap 6.40 ( http://nmap.org ) at 2017-06-17 13:47 UTC

Nmap scan report for 168.195.154.104.bc.googleusercontent.com

(104.154.195.168)

Host is up (0.0011s latency).

Not shown: 994 filtered ports

PORT STATE SERVICE

22/tcp open ssh

80/tcp open http

443/tcp closed https

3389/tcp closed ms-wbt-server

8080/tcp closed http-proxy

8081/tcp open blackice-icecap

You might also like