更新关于Unicorn的结论
This commit is contained in:
@ -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配置指向存在的路径。
|
||||
|
||||
本例修改后的内容如下:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user