gitlab社区版安装

2021-05-18  本文已影响0人  耍帅oldboy

1、安装依赖

yum install -y curl policycoreutils-python openssh-server

2、安装Postfix以发送通知电子邮件
安装命令:yum install postfix
激活命令systemctl enable postfix
启用命令: systemctl start postfix
3、gitlab社区版地址https://packages.gitlab.com/gitlab/gitlab-ce

yum install -y curl policycoreutils-python openssh-server
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce-13.11.4-ce.0.el7.x86_64

4、初始化配置:gitlab-ctl reconfigure
5、

启动命令:gitlab-ctl start

停止命令:gitlab-ctl stop

重启命令:gitlab-ctl restart

安装后,已经自动安装成开机启动服务

服务启动命令:systemctl start gitlab-runsvdir.service

服务停止命令:systemctl stop gitlab-runsvdir.service

服务重启命令:systemctl restart gitlab-runsvdir.service

服务开机启动命令:systemctl enable gitlab-runsvdir.service

取消开机启动命令:systemctl disable gitlab-runsvdir.service

服务查看命令:systemctl list-unit-files

上一篇下一篇

猜你喜欢

热点阅读