GitLab On Debian

GitLab Omnibus On Debian

下载
https://www.gitlab.com/downloads/
wget https://downloads-packages.s3.amazonaws.com/debian-7.4/gitlab_6.9.0-omnibus.2-1_amd64.deb
安装相关软件
apt-get install openssh-server
apt-get install apt-transport-https
apt-get install exim4-daemon-light
dpkg -i gitlab_6.9.0-omnibus.2-1_amd64.deb
gitlab-ctl reconfigure
相关操作
  • 查看状态

    gitlab-ctl status
    
  • 启动

    gitlab-ctl start
    
  • 停止

    gitlab-ctl stop
    
  • 重启

    gitlab-ctl restart
    
  • 重启unicorn

    gitlab-ctl restart unicorn
    
配置
  • 创建gitlab.rb

    mkdir -p /etc/gitlab
    touch /etc/gitlab/gitlab.rb
    chmod 600 /etc/gitlab/gitlab.rb
    
  • 设置

    vim /etc/gitlab/gitlab.rb
    external_url "http://10.211.55.36"
    git_data_dir "/var/opt/gitlab/git-data"
    
  • 生效

    gitlab-ctl reconfigure
    
  • 默认的用户名密码

    user: root
    password: 5iveL!fe
    
0%