GitLab镜像手册
  • GitLab镜像手册
  • GitLab镜像手册
    • 镜像组成
    • 镜像获取并验证
    • 开始安装和配置GitLab
    • 常用账号与密码说明
    • 备份
    • 升级
    • 如何远程登录和FTP?
    • 如何重启或关闭服务?
    • 如何进行域名设置?
    • 如何开启HTTPS访问?
    • 如何配置SMTP邮件设置?
    • GitLab常见问题
    • GitLab官方支持资源
    • 历史版本镜像
    • 后记
Powered by GitBook
On this page
  1. GitLab镜像手册

如何重启或关闭服务?

Previous如何远程登录和FTP?Next如何进行域名设置?

Last updated 7 years ago

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