Linux下使用GitLab一般按以下步骤进行:
curl、openssh-server等依赖包。sudo apt-get install gitlab-ce(Ubuntu/Debian)或sudo yum install gitlab-ce(CentOS/RHEL)。/etc/gitlab/gitlab.rb文件,设置external_url等参数,然后执行sudo gitlab-ctl reconfigure。sudo gitlab-ctl start启动GitLab服务。gitlab-ctl start(启动)、gitlab-ctl stop(停止)、gitlab-ctl restart(重启)。gitlab-ctl reconfigure(重新配置)、less /var/log/gitlab/gitlab-rails/production.log(查看日志)。gitlab-rake gitlab:backup:create(备份)、gitlab-rake gitlab:backup:restore(还原)。