gitlab安装:使用localhost

我按照这个指令来安装gitlab: https : //github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md

一切都很好,直到#7。 nginx的。 我对这个特定的指令有问题

# Change **YOUR_SERVER_IP** and **YOUR_SERVER_FQDN** # to the IP address and fully-qualified domain name # of your host serving GitLab sudo vim /etc/nginx/sites-available/gitlab 

我可以分别为YOUR_SERVER_IPYOUR_SERVER_FQDN使用127.0.0.1和localhost吗? 我真的不想使用任何.com,这个gitlab将在内部使用。

当我访问本地主机时,它显示502坏的网关。

我的error_log文件内容

 2013/03/24 09:18:21 [crit] 12152#0: *1 connect() to unix:/home/git/gitlab/tmp/sockets/gitlab.socket failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/", host: "localhost" 

您的帮助是高度赞赏。 谢谢。

确认/home/git/gitlab/tmp/sockets/gitlab.socket确实存在,并具有与安装说明相符的权限/所有权。 另外,尝试/ home / git / gitlab目录内运行这两个命令:

 sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production 

所有的项目应该是绿色的。 如果没有,你将不得不从那里更具体地排除故障。

这里有一个与你所看到的有关的Github问题 。 希望上述步骤能解决这个问题,或者至less让你更进一步!

您的数据库安装不正确或您的凭据访问是错误的。 请确保您遵循https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/databases.md并按照您的数据库平台的指示执行以下操作之一。

Mysql的

sudo -u git cp config / database.yml.mysql config / database.yml

PostgreSQL的

sudo -u git cp config / database.yml.postgresql config / database.yml