更新关于Unicorn的结论

This commit is contained in:
2016-03-19 16:31:31 +08:00
parent 61fe66c6cb
commit 359e4dd3bc
3 changed files with 23 additions and 14 deletions

View File

@ -280,16 +280,20 @@ Make sure GitLab can write to the public/uploads/ directory
$ chmod -R u+rwX public/uploads
Copy the example Unicorn config
复制Unicorn的示例配置文件
复制并修改Unicorn的示例配置文件
$ cp config/unicorn.rb.example config/unicorn.rb
$ vim config/unicorn.rb
Enable cluster mode if you expect to have a high load instance
Ex. change amount of workers to 3 for 2GB RAM server
启用集群模式如果你期望拥有一个高负载实例
修改worker的数量到3用于2GB内存的服务器
$ vim config/unicorn.rb
worker的数量不能小于2否则 push 时候出现如下错误:
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
默认监听本地127.0.0.1仅供内部访问一般情况下需要使用nginx做端口转发使gitlab与其他站点共存。若要使unicorn直接提供外网访问更改为
@ -514,7 +518,7 @@ Read http://wiki.centos.org/HowTos/Network/SecuringSSH
<https://gitlab.com/gitlab-org/gitlab-recipes/tree/8-2-stable/web-server/apache>
本例安装的 gitlab 版本并不包含 gitlab-workhorse需要将与其相关的内容注释掉本例使用了#noworkhorse#注释),否则 apache 无法启动。另外保证log配置指向存在的路径。
本例安装的 gitlab 版本并不包含 gitlab-workhorse需要将与其相关的内容注释掉本例使用了#noworkhorse#注释),否则 apache 无法启动。另外,修改所有YOUR_SERVER_FQDN保证log配置指向存在的路径。
本例修改后的内容如下: