- 参考
- 注意
- 无特别说明,文档中的命令都以 root 执行
1. 安装 Gitlab
1.1. 操作系统 CentOS 6.8
|
|
1.1.1. 配置第三方 yum 库
Add EPEL repository
-
Download the GPG key
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 https://getfedora.org/static/0608B895.txt rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
-
检查是否配置成功:
rpm -qa gpg* gpg-pubkey-0608b895-4bd22942
-
安装 epel-release-6-8.noarch package, which will enable EPEL repository on your system:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Add Remi’s RPM repository
-
Download the GPG key
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-remi http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
-
检查是否配置成功:
rpm -qa gpg* gpg-pubkey-00f97f56-467e318a
-
安装 remi-release-6 package, which will enable remi-safe repository on your system:
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
检查 yum库是否配置成功
|
没成功,手动enable
|
1.1.2. 安装 yum 软件包
|
-
注意
如果有些包(eg. gdbm-devel, libffi-devel and libicu-devel)安装不了,尝试执行:yum-config-manager --enable rhel-6-server-optional-rpms
1.1.3. 安装 mail 服务器
推荐 postfix
|
1.1.4. 配置缺省的 Editor
|
取消链接
rm -i /usr/bin/editor
1.2. 从 源码 安装 Git(2.7.4 or higher)
|
将 Git 的执行目录 加入到 $PATH
修改 config/gitlab.yml ,将 git bin_path 改为 /usr/local/bin/git.
1.3. 安装 Ruby(2.1)
|
1.3.1. Install the Bundler Gem