GitLab 甯哥敤鍛戒护

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitLab 甯哥敤鍛戒护相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/font' title='font'>font   conf   缁勪欢   鍚姩   etc   class   閰嶇疆   res   pre   

 

 

GitLab 甯哥敤鍛戒护

# 鍚姩鎵€鏈?gitlab 缁勪欢锛?/span>
gitlab-ctl start
# 鍋滄鎵€鏈?gitlab 缁勪欢锛?/span>
gitlab-ctl stop
# 鍋滄 postgresql 缁勪欢锛?/span>
gitlab-ctl stop postgresql
# 鍋滄鐩稿叧鏁版嵁杩炴帴鏈嶅姟
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
# 閲嶅惎鎵€鏈?gitlab 缁勪欢锛?/span>
gitlab-ctl restart
# 閲嶅惎 gitlab-workhorse 缁勪欢锛?/span>
gitlab-ctl restart gitlab-workhorse
# 鏌ョ湅鏈嶅姟鐘舵€?/span>
gitlab-ctl status

# 濡傛灉鏇存敼浜嗕富閰嶇疆鏂囦欢 [锛?etc/gitlab/gitlab.rb 鏂囦欢],闇€瑕佺敤杩欎釜鍛戒护锛屼娇閰嶇疆鏂囦欢鐢熸晥 浣嗘槸浼氬垵濮嬪寲闄や簡gitlab.rb 涔嬪鐨勬墍鏈夋枃浠?/span>

sudo gitlab-ctl reconfigure

 

鎵ц瀹屼笂闈㈤偅涓懡浠?nbsp;閲嶅惎鎵€鏈?gitlab 缁勪欢

gitlab-ctl restart

閽堝鏌愪釜鏈嶅姟閲嶅惎 渚嬪閲嶅惎nginx

gitlab-ctl restart nginx

閽堝鏌愪釜鏈嶅姟鍚姩 渚嬪鍚姩nginx

gitlab-ctl start nginx

閽堝鏌愪釜鏈嶅姟鍏抽棴 渚嬪鍏抽棴nginx

gitlab-ctl stop nginx


# 鏌ョ湅鏃ュ織 锛堟煡鐪媑itlab鏁翠釜鎵€鏈夌殑鏃ュ織锛?/span>
sudo gitlab-ctl tail

鍏蜂綋鐨勬棩蹇楁枃浠惰矾寰勶細

[root@ci-node1 src]# ll /var/log/gitlab/
total 12
drwx------ 2 git               root         95 Mar 23 23:27 gitaly
drwx------ 2 git               root         95 Mar 23 23:27 gitlab-monitor
drwx------ 2 git               root       4096 Mar 28 00:39 gitlab-rails
drwx------ 2 git               root        204 Mar 28 00:39 gitlab-shell
drwx------ 2 git               root         95 Mar 23 23:27 gitlab-workhorse
drwx------ 2 root              root         95 Mar 23 23:27 logrotate
drwxr-x--- 2 root              gitlab-www 4096 Mar 28 00:39 nginx
drwx------ 2 gitlab-prometheus root         95 Mar 23 23:27 node-exporter
drwx------ 2 gitlab-psql       root         95 Mar 23 23:27 postgres-exporter
drwx------ 2 gitlab-psql       root         95 Mar 23 23:27 postgresql
drwx------ 2 gitlab-prometheus root        235 Mar 27 23:27 prometheus
drwxr-xr-x 2 root              root         28 Mar 22 23:25 reconfigure
drwx------ 2 gitlab-redis      root        235 Mar 27 23:27 redis
drwx------ 2 gitlab-redis      root         95 Mar 23 23:27 redis-exporter
drwx------ 2 git               root        235 Mar 27 23:27 sidekiq
drwx------ 2 git               root       4096 Mar 28 00:39 unicorn

涓€鑸湁闂 鏈夋姤閿欐椂鍊?nbsp;鍙互鐪?鎵€鏈夎緭鍑?nbsp;gitlab-ctl tail

# 妫€鏌?redis 鐨勬棩蹇?/span>
sudo gitlab-ctl tail redis

以上是关于GitLab 甯哥敤鍛戒护的主要内容,如果未能解决你的问题,请参考以下文章

Linux甯哥敤鍛戒护

sql甯哥敤鍛戒护

Linux甯哥敤鍛戒护

git甯哥敤鍛戒护

linux甯哥敤鍛戒护--宸ヤ綔璁板綍20201126

linux鏃ュ父甯哥敤鍛戒护鏁寸悊