1.安装依赖
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
postfix是用来发邮件的
2.设置postfix开机自启,并启动,postfix支持gitlab发信功能
systemctl enable postfix && systemctl start postfix
3.进入指定目录下载gitlab
cd /usr/local/src
4.下载gitlab包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
5.安装gitlab
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
6.修改gitlab配置文件指定服务器ip和自定义端口:
扫描二维码关注公众号,回复:
4854255 查看本文章