gitlab 部署和使用

Gitlab 部署

环境准备

[root@node-05 ~]# yum install curl policycoreutils openssh-server openssh-clients

[root@node-05 ~]#

[root@node-05 ~]# systemctl enable sshd

[root@node-05 ~]# systemctl start sshd

[root@node-05 ~]# yum install -y postfix

[root@node-05 ~]# systemctl enable postfix

[root@node-05 ~]# systemctl start postfix

[root@node-05 ~]# systemctl stop firewalld

[root@node-05 ~]# systemctl disable firewalld

[root@node-05 ~]#

[root@node-05 ~]#

[root@node-05 ~]#

 

Gitlab 下载:

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A

Gitlab 部署

环境准备

[root@node-05 ~]# yum install curl policycoreutils openssh-server openssh-clients

[root@node-05 ~]#

[root@node-05 ~]# systemctl enable sshd

[root@node-05 ~]# systemctl start sshd

[root@node-05 ~]# yum install -y postfix

[root@node-05 ~]# systemctl enable postfix

[root@node-05 ~]# systemctl start postfix

[root@node-05 ~]# systemctl stop firewalld

[root@node-05 ~]# systemctl disable firewalld

[root@node-05 ~]#

[root@node-05 ~]#

[root@node-05 ~]#

 

Gitlab 下载:

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A

 

 

 

[root@node-05 software]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm

?[root@node-05 software]# ls

gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm

[root@node-05 software]#

#rpm -ivh gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm --force

or

[root@node-05 software]# yum -y install gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm

[root@node-05 software]#

[root@node-05 software]# gitlab-ctl reconfigure

-------------------------------------

Running handlers:

Running handlers complete

Chef Client finished, 551/1459 resources updated in 03 minutes 42 seconds

gitlab Reconfigured!

[root@node-05 software]#

 

启动Gitlab

 

[root@node-05 ~]#

[root@node-05 ~]#  gitlab-ctl start

ok: run: alertmanager: (pid 56544) 55906s

ok: run: gitaly: (pid 56482) 55908s

ok: run: gitlab-exporter: (pid 56500) 55908s

ok: run: gitlab-workhorse: (pid 56468) 55909s

ok: run: grafana: (pid 56640) 55905s

ok: run: logrotate: (pid 35028) 1998s

ok: run: nginx: (pid 39063) 2s

ok: run: node-exporter: (pid 56476) 55909s

ok: run: postgres-exporter: (pid 56556) 55905s

ok: run: postgresql: (pid 55603) 56069s

ok: run: prometheus: (pid 56526) 55907s

ok: run: redis: (pid 55398) 56081s

ok: run: redis-exporter: (pid 56512) 55908s

ok: run: sidekiq: (pid 55833) 56016s

ok: run: unicorn: (pid 55795) 56022s

[root@node-05 ~]#

 

[root@node-05 ~]#  gitlab-ctl status

run: alertmanager: (pid 56544) 55952s; run: log: (pid 56238) 56013s

run: gitaly: (pid 56482) 55954s; run: log: (pid 55480) 56118s

run: gitlab-exporter: (pid 56500) 55954s; run: log: (pid 56109) 56029s

run: gitlab-workhorse: (pid 56468) 55955s; run: log: (pid 55897) 56055s

run: grafana: (pid 56640) 55951s; run: log: (pid 56397) 55973s

run: logrotate: (pid 35028) 2044s; run: log: (pid 55947) 56043s

run: nginx: (pid 39180) 1s; run: log: (pid 55915) 56049s

run: node-exporter: (pid 56476) 55955s; run: log: (pid 56010) 56035s

run: postgres-exporter: (pid 56556) 55951s; run: log: (pid 56292) 56005s

run: postgresql: (pid 55603) 56115s; run: log: (pid 55662) 56112s

run: prometheus: (pid 56526) 55953s; run: log: (pid 56187) 56019s

run: redis: (pid 55398) 56127s; run: log: (pid 55425) 56124s

run: redis-exporter: (pid 56512) 55954s; run: log: (pid 56151) 56023s

run: sidekiq: (pid 55833) 56062s; run: log: (pid 55842) 56061s

run: unicorn: (pid 55795) 56068s; run: log: (pid 55827) 56067s

[root@node-05 ~]#

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值