在阿里云编译安装gitlab记录

gitlab安装的蛋碎问题

  1. 查到gitlab启动的nginx的方式,ps aux | grep gitlab;看到有个runsvdir -P /opt/gitlab/service log ; 找到对应目录的下的nginx , 并把run文件后续启动nginx的代码干掉.
  2. 把gitlab的nginx的配置复制并修改到自己的nginx配置中 , 拉起

遇到奇葩的权限问题

2015/10/04 00:59:46 [crit] 1659#0: *62 connect() to unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket failed (13: Permission denied) while connecting to upstream, client: 175.188.203.214, server: gitlab.com, request: “GET / HTTP/1.1”, upstream: “http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/”, host: “gitlab.com”

解决方式:(由于gitlab自己的nginx的账号是gitlab-www运行的,找到gitlab的目录下的文件,增加执行权限)

chmod o+x /var/opt/gitlab/gitlab-rails/sockets/;

chmod o+x /var/opt/gitlab/gitlab-rails/uploads/;

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.