在Ubuntu上监控GitLab运行状态,可使用以下方法:
top
、htop
、ps
等命令查看系统资源使用情况及GitLab相关进程状态。使用journalctl -u gitlab
查看GitLab服务日志。sudo gitlab-ctl status
查看GitLab各服务运行状态。对于GitLab 3.1及之后版本,可用sudo -u gitlab -H bundle exec rake gitlab:app:status RAILS_ENV=production
检查运行状态;GitLab 4.0及之后版本用sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
。