How can I restart bundle nginx in gitlab separately?

北战南征 提交于 2019-11-27 22:10:19

To restart only one component of GitLab Omnibus you can execute sudo gitlab-ctl restart <component>. Therefore, to restart Nginx:

sudo gitlab-ctl restart nginx

As a further note, this same concept is possible with nearly all of the gitlab-ctl commands. For example, sudo gitlab-ctl tail allows you to see all GitLab logs. Applying this concept, sudo gitlab-ctl tail nginx will tail only Nginx logs.

My tuto explains how to add vhosts to a NON-bundled nginx server, not the bundled one.

The steps are :

  • disable the bundled version
  • install a standalone nginx version compiled with passenger module,
  • configure it to serve gitlab as a vhost
  • and then configure other custom vhosts on it.

If sudo service nginx restart return

* Restarting nginx nginx                                     [fail] 

then you probably installed nginx separately with something like sudo apt-get install nginx or you installed the recompiled version with pushion passenger module as I explain in my tuto ?

Do you really use the bundled version or you misunderstood this step in my tuto ?

Please answer these questions in comments then I will edit this answer to write the solution you really need.

To restart bundled nginx do sudo gitlab-ctl restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!