How can I restart bundle nginx in gitlab separately?

前端 未结 3 1067
旧时难觅i
旧时难觅i 2020-12-05 18:36

I have installed Gitlab CE version. I can find nginx bundled in Gitlab. However I cannot find a way to restart nginx separately. I have tried sudo service nginx restar

相关标签:
3条回答
  • 2020-12-05 19:02

    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.

    0 讨论(0)
  • 2020-12-05 19:07

    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.

    0 讨论(0)
  • 2020-12-05 19:16

    To restart bundled nginx do sudo gitlab-ctl restart

    0 讨论(0)
提交回复
热议问题