Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
dc5a2052
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dc5a2052
编写于
1月 21, 2016
作者:
A
Achilleas Pipinellis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos, make things more clear
[ci skip]
上级
086cbca6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
18 deletion
+25
-18
doc/administration/restart_gitlab.md
doc/administration/restart_gitlab.md
+25
-18
未找到文件。
doc/administration/restart_gitlab.md
浏览文件 @
dc5a2052
...
...
@@ -12,13 +12,7 @@ If you want the TL;DR versions, jump to:
## Omnibus installations
If you have used the
[
Omnibus packages
][
omnibus-dl
]
to install GitLab, then
you should already have
`gitlab-ctl`
in your
`PATH`
. To find out, run:
```
bash
which gitlab-ctl
```
The output should be:
`/usr/bin/gitlab-ctl`
.
you should already have
`gitlab-ctl`
in your
`PATH`
.
`gitlab-ctl`
interacts with the Omnibus packages and can be used to restart the
GitLab Rails application (Unicorn) as well as the other components, like:
...
...
@@ -29,11 +23,12 @@ GitLab Rails application (Unicorn) as well as the other components, like:
-
NGINX (if you are using the bundled one)
-
Redis (if you are using the bundled one)
-
[
Mailroom
][]
-
Logrotate
.
-
Logrotate
### Omnibus GitLab restart
When you are asked to _restart GitLab_, you need to run the following command:
There may be times in the documentation where you will be asked to _restart_
GitLab. In that case, you need to run the following command:
```
bash
sudo
gitlab-ctl restart
...
...
@@ -65,14 +60,20 @@ To check the status of GitLab services, run:
sudo
gitlab-ctl status
```
Notice that all services say
`ok: run`
. If you get any weird results, like the
unicorn service not starting, you may need to
Notice that all services say
`ok: run`
.
Sometimes, components time out during the restart and sometimes they get stuck.
In that case, you can use
`gitlab-ctl kill <service>`
to send the
`SIGKILL`
signal to the service, for example
`sidekiq`
. After that, a restart should
perform fine.
As a last resort, you can try to
[
reconfigure GitLab
](
#omnibus-gitlab-reconfigure
)
instead.
### Omnibus GitLab reconfigure
There may be times
where you will be asked to _reconfigure_ GitLab. Remember
that this method applies only for the Omnibus packages.
There may be times
in the documentation where you will be asked to _reconfigure_
GitLab. Remember
that this method applies only for the Omnibus packages.
Reconfigure Omnibus GitLab with:
...
...
@@ -86,8 +87,14 @@ configuration (`/etc/gitlab/gitlab.rb`) has changed.
When you run this command, [Chef], the underlying configuration management
application that powers Omnibus GitLab, will make sure that all directories,
permissions, services, etc., are in place and in the same shape that they were
initially shipped. This is where the _idempotency_ buzz-word you've been reading
here and there fits.
initially shipped.
It will also restart GitLab components where needed, if any of their
configuration files have changed.
If you manually edit any files in
`/var/opt/gitlab`
that are managed by Chef,
running reconfigure will revert the changes AND restart the services that
depend on those files.
## Installations from source
...
...
@@ -120,14 +127,14 @@ GitLab and all its components are up and running.
```
This should restart Unicorn, Sidekiq, GitLab Workhorse and
[
Mailroom
][]
(if enabled). The init service file that does all the magic can be found
i
n
[
`lib/support/init.d/gitlab`
][
src-service
]
.
(if enabled). The init service file that does all the magic can be found
o
n
your server in
`/etc/init.d/gitlab`
.
---
If you are using other init systems, like systemd, you can check the
[
GitLab Recipes
][
gl-recipes
]
repository for some unofficial services. These are
**not**
officially supported so use at your own risk.
**not**
officially supported so use
them
at your own risk.
[
omnibus-dl
]:
https://about.gitlab.com/downloads/
"Download the Omnibus packages"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录