linux 安装gitlab

获取gitlab版本:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/

(主要要选中和linux系统对应的版本)

centos 6系统选择:el6

centos 7系统选择:el7

1:安装必要的插件

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

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

chkconfig postfix on
service postfix start

3:安装插件

yum install policycoreutils-python

4:安装gitlab

rpm -i gitlab-ce-11.3.14-ce.0.el6.x86_64.rpm 

5:如果出现如下错误则说明你使用错了版本了请更换版本

/opt/gitlab/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.3)
/opt/gitlab/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /opt/gitlab/embedded/lib/libruby.so.2.3)

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章