在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。