CentOS 7 安装Gitlab

会有一股神秘感。 提交于 2020-04-07 15:04:34

1、安装依赖

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

2、设置postfix开机自启,并启动,postfix支持gitlab发信功能

systemctl enable postfix && systemctl start postfix

3、下载gitlab安装包,然后安装

 wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.2-ce.0.el7.x86_64.rpm
 
 rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm

4、修改gitlab配置文件指定服务器ip和自定义端口

vim /etc/gitlab/gitlab.rb

5、重置并启动GitLab

gitlab-ctl reconfigure gitlab-ctl restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!