lakers009 发表于 2017-11-17 11:05:42

CentOS6安装GitLab

1. 安装并配置必要的依赖关系
  在 CentOS 系统上,下面的命令将会打开系统防火墙 HTTP 和 SSH 的访问。
  10.x以后开始依赖policycoreutils-python,使用9.x时还没有依赖该项。



sudo yum install curl openssh-server openssh-clients postfix cronie policycoreutils-python
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh

2. 添加 GitLab 镜像源并安装



curl -O https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-10.0.0-ce.0.el6.x86_64.rpm
rpm -i gitlab-ce-10.0.0-ce.0.el6.x86_64.rpm --prefix=/usr/local/gitlab

3. 配置并启动 GitLab
  编辑gitlab.rb文件,修改监听IP和端口号



vim /etc/gitlab/gitlab.rb
unicorn['listen'] = '192.168.x.xxx'
unicorn['port'] = 8088
  重新启动gitlab



sudo gitlab-ctl reconfigure

4. 浏览器访问gitlab



http://192.168.x.xxx:8088
  初始化登录密码
  

参考
  gitlab中文网
  https://www.gitlab.cc/installation/#centos-6
  gitlab访问时出现502异常
  http://blog.csdn.net/wangxicoding/article/details/43738137

 
页: [1]
查看完整版本: CentOS6安装GitLab