gitlab 部署和使用
Gitlab 部署
环境准备
[[email protected] ~]# yum install curl policycoreutils openssh-server openssh-clients
[[email protected] ~]#
[[email protected] ~]# systemctl enable sshd
[[email protected] ~]# systemctl start sshd
[[email protected] ~]# yum install -y postfix
[[email protected] ~]# systemctl enable postfix
[[email protected] ~]# systemctl start postfix
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# systemctl disable firewalld
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]#
Gitlab 下载:
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A
Gitlab 部署 环境准备 [[email protected] ~]# yum install curl policycoreutils openssh-server openssh-clients [[email protected] ~]# [[email protected] ~]# systemctl enable sshd [[email protected] ~]# systemctl start sshd [[email protected] ~]# yum install -y postfix [[email protected] ~]# systemctl enable postfix [[email protected] ~]# systemctl start postfix [[email protected] ~]# systemctl stop firewalld [[email protected] ~]# systemctl disable firewalld [[email protected] ~]# [[email protected] ~]# [[email protected] ~]#
Gitlab 下载: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A
[[email protected] software]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm ?[[email protected] software]# ls gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm [[email protected] software]# #rpm -ivh gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm --force or [[email protected] software]# yum -y install gitlab-ce-12.6.8-ce.0.el7.x86_64.rpm [[email protected] software]# [[email protected] software]# gitlab-ctl reconfigure ------------------------------------- Running handlers: Running handlers complete Chef Client finished, 551/1459 resources updated in 03 minutes 42 seconds gitlab Reconfigured! [[email protected] software]#
|
启动Gitlab
[[email protected] ~]# [[email protected] ~]# 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 [[email protected] ~]#
[[email protected] ~]# 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 [[email protected] ~]#
|