安装

安装就按照官方文档安装,有趣的是gitlab用了chef来进行自动安装,非常酷。

配置

不用22端口

如果gitLab不是用22端口,要设置一下。

方法一(首选)

~/.ssh/config 增加如下行 Host your_gitlab.your_domain.com Port your_port

方法二

$ vim /etc/gitlab/gitlab.rb
$ 修改external_url
$ 搜素worker,把unicorn workers 设置为CPU核数+1
$ 搜索ssh,把port=your_port打开,阿里云可能不是22端口,需要设置正确,改完后,页面上某个项目的ssh地址就变成了 ssh://git@ip:port/zhangjian/nodesl.git
$ gitlab-ctl reconfigure

gitLab和RedMine互通

http://your_gitlab.your_domain.com/some_programmer/some_project/services/redmine/edit

Project -> Settings -> Services -> RedMine