如何重启或关闭服务?

一旦使用Omnibus包安装之后,实际上等于集成了命令控制台。常见命令包括:

# Start all GitLab components
sudo gitlab-ctl start

# Stop all GitLab components
sudo gitlab-ctl stop

# Restart all GitLab components
sudo gitlab-ctl restart

# Restart Nginx
sudo gitlab-ctl restart nginx

Note that on a single-core server it may take up to a minute to restart Unicorn and Sidekiq. Your GitLab instance will give a 502 error until Unicorn is up again.

It is also possible to start, stop or restart individual components.

sudo gitlab-ctl restart sidekiq

Unicorn supports zero-downtime reloads. These can be triggered as follows:

sudo gitlab-ctl hup unicorn

Note that you cannot use a Unicorn reload to update the Ruby runtime.

更多命令:https://docs.gitlab.com/omnibus/maintenance/README.html#starting-and-stopping