【问题标题】:Changing port for unicorn更改独角兽的端口
【发布时间】:2014-03-12 00:45:18
【问题描述】:

我已经按照本教程中的描述设置了 gitlab:https://github.com/gitlabhq/gitlabhq/blob/6-4-stable/doc/install/installation.md

现在我需要更改独角兽正在监听的端口。我已经更改了 unicorn.rb 文件。但是,unicorn 仍在尝试连接 8080 端口。

我错过了什么?

【问题讨论】:

  • 根本原因是什么?独角兽进程没有被正确杀死?
  • 是的 - 手动杀死它就可以了

标签: port unicorn gitlab


【解决方案1】:

在更改config/unicorn.rb 之后,您需要在重启 Unicorn 时检查日志(如log/unicorn.stderr.log)。

您将看到根本原因(例如issue 2236

issue 4928 一样,请确保首先停止独角兽(issue 5451 中相同)。


2017 年第四季度更新(3 年后)

Markus Piipari 使用 GitLab 10.4 的设置在 this answer 中报告:

unicorn['port'] = 8081
gitlab_workhorse['auth_backend'] = "http://localhost:8081"

然后运行:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

改变独角兽端口应该足够了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-06
    • 2014-09-20
    • 1970-01-01
    • 1970-01-01
    • 2014-01-15
    • 2012-01-05
    • 1970-01-01
    • 2012-01-08
    相关资源
    最近更新 更多