Gitlab related

Time:2021-4-21

download

Download your own gitlab installation package

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.3-ce.0.el7.x86_64.rpm

install

rpm -ivh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm
gitlab-ctl reconfig

backups

#If in / etc / gitlab/ gitlab.rb  The file is configured with the parameter "backup"_ path”
#(for example, gitlab_ rails['backup_ Path & amp; apos;] = & amp; apos; Backup & amp; apos;), then the backup directory is the directory (/ backup /)
# If the parameter "backup" is not configured_ Then gitlab generates the backup file to the default directory / var / opt / gitlab / backups。
gitlab-rake gitlab:backup:create

recovery

gitlab-rake  gitlab:backup : restore backup = backup file gitlab_ backup.tar Number in front

upgrade

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
gitlab-ctl stop nginx
rpm -Uvh gitlab-ce-10.0.4-ce.0.el7.x86_64.rpm

uninstall

gitlab-ctl stop
rpm -e gitlab-ce
ps aux | grep gitlab
kill 
rm -rf  /opt/gitlab
rm -rf  /etc/gitlab
rm -rf  /var/log/gitlab

other

cat  / opt / gitlab / embedded / service / gitlab - rails / VERSION  # View version
gitlab - ctl start  #  Start all gitlab components;
Gitlab CTL stop # stops all gitlab components;
Gitlab CTL restart? Restart all gitlab components;
Gitlab CTL status # view service status;
Gitlab CTL reconfigure # starts the service;
vim /etc/gitlab/ gitlab.rb  #Modify the default configuration file;
gitlab-rake  gitlab:check SANITIZE=true  --Trace # check gitlab;
Gitlab CTL tail # view log;
Gitlab CTL start PostgreSQL # start a single service

This work adoptsCC agreementReprint must indicate the author and the link of this article

Recommended Today

Review of SQL Sever basic command

catalogue preface Installation of virtual machine Commands and operations Basic command syntax Case sensitive SQL keyword and function name Column and Index Names alias Too long to see? Space Database connection Connection of SSMS Connection of command line Database operation establish delete constraint integrity constraint Common constraints NOT NULL UNIQUE PRIMARY KEY FOREIGN KEY DEFAULT […]