GitLab的安装与配置
更新日期:
GitLab简介
Code, test, and deploy together
GitLab安装
GitLab配置
- 默认安装路径:/opt/gitlab/
- 配置文件路径:/var/opt/gitlab/
- nginx配置路径:/var/opt/gitlab/nginx/conf/gitlab-http.conf (初次安装可以修改监听端口)
- GitLab配置文件:/etc/gitlab/gitlab.rb
一些配置问题
HTTP访问自动转到hostname
- 可以通过修改如下配置项解决
- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml: host: git.zhuliang.net.cn
- /var/opt/gitlab/gitlab-rails/etc/gitlab.yml: email_from: gitlab@git.zhuliang.net.cn
- /var/opt/gitlab/nginx/conf/gitlab-http.conf: server_name git.zhuliang.net.cn;
- /var/opt/gitlab/nginx/conf/gitlab-http.conf: proxy_set_header Host git.zhuliang.net.cn;
发送邮件失败
- 一般是postfix服务权限配置不正确导致的.
- postfix配置文件:/etc/postfix/main.cf
- 修改:inet_interfaces = all
- 启动:service postfix start