> For the complete documentation index, see [llms.txt](https://websoft9.gitbook.io/gitlab-image-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://websoft9.gitbook.io/gitlab-image-guide/gitlab-jing-xiang-shou-ce-1/ru-he-zhong-qi-huo-guan-bi-fu-wu.md).

# 如何重启或关闭服务？

一旦使用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>
