【12.25】代码管理平台 gitlab
22.14/22.15 安装gitlab
gitlab 官网 https://about.gitlab.com/gitlab-com/
官方安装文档:https://about.gitlab.com/install/#centos-7
要求服务器内存不少于2g,否则会卡死
1、创建 gitlab 的安装源
[root@arslinux-01 ~]# vim /etc/yum.repos.d/gitlab.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
2、安装 gitlab
[root@arslinux-01 ~]# yum install -y gitlab-ce
3、自动配置 gitlab
[root@arslinux-01 ~]# gitlab-ctl reconfigure
[root@arslinux-01 ~]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.194.130:27017 0.0.0.0:* LISTEN 7504/mongod
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 7504/mongod
tcp 0 0 127.0.0.1:9100 0.0.0.0:* LISTEN 14204/node_exporter
tcp 0 0 127.0.0.1:9229 0.0.0.0:* LISTEN 14189/gitlab-workho
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 127.0.0.1:9168 0.0.0.0:* LISTEN 14222/puma 3.12.0 (
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 12872/unicorn maste
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 12951/nginx: master
tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 7332/rpc.mountd
tcp 0 0 0.0.0.0:37361 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN 12888/sidekiq 5.2.7
tcp 0 0 127.0.0.1:9236 0.0.0.0:* LISTEN 14209/gitaly
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 7242/sshd