Configuration 如何更改Gitlab应用程序和日志目录?

Configuration 如何更改Gitlab应用程序和日志目录?,configuration,gitlab,gitlab-ci,Configuration,Gitlab,Gitlab Ci,我已经将Gitlab安装在我的Linux机器上,安装后,它在这个路径上创建了各种组件的默认目录-/var/opt/Gitlab。现在这个目录是由root所有的,在这个目录中,我们创建了不同的用户和组 drwx------. 3 git root 26 Sep 18 11:03 git-data drwxr-xr-x. 3 git root 20 Sep 18 11:03 gitlab-ci drwx------.

我已经将Gitlab安装在我的Linux机器上,安装后,它在这个路径上创建了各种组件的默认目录-
/var/opt/Gitlab
。现在这个目录是由root所有的,在这个目录中,我们创建了不同的用户和组

drwx------. 3 git               root        26 Sep 18 11:03 git-data
drwxr-xr-x. 3 git               root        20 Sep 18 11:03 gitlab-ci
drwx------. 2 git               root         6 Sep 18 11:03 backups
-rw-------. 1 root              root        38 Sep 18 11:06 bootstrapped
drwxr-xr-x. 3 root              root        32 Sep 18 11:06 node-exporter
drwxr-xr-x. 2 git               root        53 Sep 18 17:28 gitlab-exporter
drwxr-x---. 4 gitlab-prometheus root        53 Sep 18 17:28 prometheus
drwxr-x---. 3 gitlab-prometheus root        42 Sep 18 17:28 alertmanager
drwx------. 2 gitlab-psql       root        26 Sep 18 17:28 postgres-exporter
drwx------. 4 gitlab-prometheus root        83 Sep 18 17:28 grafana
drwxr-x---. 9 root              gitlab-www 163 Oct 14 13:15 nginx
-rw-r--r--. 1 root              root        40 Oct 14 14:19 trusted-certs-directory-hash
drwx------. 3 git               root       103 Oct 26 15:38 gitaly
drwxr-xr-x. 3 gitlab-psql       root        81 Oct 26 15:38 postgresql
drwxr-x---. 2 git               gitlab-www  54 Oct 26 15:38 gitlab-workhorse
-rw-r--r--. 1 root              root       483 Oct 26 15:38 public_attributes.json
drwx------. 2 git               root        24 Oct 26 16:14 gitlab-shell
drwxr-xr-x. 9 git               root       160 Oct 26 16:14 gitlab-rails
drwx------. 3 root              root        71 Oct 26 16:25 logrotate
drwxr-x---. 2 gitlab-redis      git         60 Oct 26 16:43 redis
这都是默认创建的。我希望所有这些都被移动到我的
/app
目录,在那里我有很多空间。可能里面有些东西,比如
/app/gitlab/

我是否需要从头开始重新安装所有东西,或者在
gitlab.rb
文件中是否有任何可以进行这些更改的配置?
/app
myuser
管理

如果有人能给我建议,请告诉我。我真的需要一些指导

注意-我曾尝试使用user
myuser
更改
gitlab.rb
中的路径,但当我运行
gitlab ctl reconfigure
时,我收到了此错误-


STDERR:usermod:user myuser当前正由流程1011使用

您必须停止并启动gitlab才能使更改生效。