1. 查看GITLAB的版本号
[tianyu@happylich ~]$ cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
11.3.4-ee
2. 查看GITLAB的状态
[tianyu@happylich ~]$ sudo gitlab-ctl status
run: alertmanager: (pid 9623) 191s; run: log: (pid 26940) 26623332s
run: gitaly: (pid 9636) 191s; run: log: (pid 26890) 26623334s
run: gitlab-monitor: (pid 9648) 191s; run: log: (pid 26903) 26623333s
run: gitlab-workhorse: (pid 9651) 190s; run: log: (pid 26871) 26623334s
run: logrotate: (pid 9669) 190s; run: log: (pid 26873) 26623334s
run: nginx: (pid 10464) 2s; run: log: (pid 26872) 26623334s
run: node-exporter: (pid 9680) 189s; run: log: (pid 26917) 26623333s
run: postgres-exporter: (pid 9684) 189s; run: log: (pid 26950) 26623332s
run: postgresql: (pid 9689) 188s; run: log: (pid 26861) 26623335s
run: prometheus: (pid 9701) 188s; run: log: (pid 26916) 26623333s
run: redis: (pid 9708) 187s; run: log: (pid 26858) 26623335s
run: redis-exporter: (pid 9714) 186s; run: log: (pid 26904) 26623333s
run: sidekiq: (pid 9719) 186s; run: log: (pid 26859) 26623335s
run: unicorn: (pid 10338) 33s; run: log: (pid 26860) 26623335s
3. 检查各个服务的状态
检查redis的日志
sudo gitlab-ctl tail redis
检查postgresql的日志
sudo gitlab-ctl tail postgresql
检查gitlab-workhorse的日志
sudo gitlab-ctl tail gitlab-workhorse
检查logrotate的日志
sudo gitlab-ctl tail logrotate
检查nginx的日志
sudo gitlab-ctl tail nginx
检查sidekiq的日志
sudo gitlab-ctl tail sidekiq
检查unicorn的日志
sudo gitlab-ctl tail unicorn