命令说明:
// 重新加载配置,每次修改/etc/gitlab/gitlab.rb文件之后执行
gitlab-ctl reconfigure
// 查看 GitLab 状态
gitlab-ctl status
// 启动 GitLab
gitlab-ctl start
// 停止 GitLab
gitlab-ctl stop
// 重启 GitLab
gitlab-ctl restart
// 查看所有日志
gitlab-ctl tail
// 查看 nginx 访问日志
gitlab-ctl tail nginx/gitlab_acces.log
// 查看 postgresql 日志
gitlab-ctl tail postgresql
编辑
“`bash
vim /etc/gitlab/gitlab.rb
puma['worker_timeout'] = 30
gitlab_rails['time_zone'] = 'Asia/Shanghai'
puma['worker_processes'] = 2
postgresql['shared_buffers'] = "256MB"
sidekiq['max_concurrency'] = 8
postgresql['max_worker_processes'] = 4
puma['per_worker_max_memory_mb'] = 600
prometheus_monitoring['enable'] = false
sidekiq['min_concurrency'] = 8
unicorn['worker_processes'] = 2
unicorn['worker_timeout'] = 60
“`