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和自定義端口


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