ubuntu20.04部署gitlab流程

时间:2024-06-01 18:25:03

参考:
https://blog.****.net/weixin_57025326/article/details/136048507

362  wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/focal/gitlab-ce_16.2.1-ce.0_amd64.deb/download.deb
  367  sudo apt install gitlab-ce_16.2.1-ce.0_amd64.deb
  368  sudo apt install gitlab-cli
  370  sudo apt install gitlab-cli
  371  sudo dpkg -i gitlab-ce_16.2.1-ce.0_amd64.deb
  372  vim /etc/gitlab/gitlab.rb
  373  apt install vim
  374  sudo aptitude install vim
  375  vim /etc/gitlab/gitlab.rb
  376  cd /data/gitlab/git-data
  383  mkdir data
  385  cd data/
  387  mkdir gitlab
  389  cd gitlab/
  394  mkdir git-data
  396  cd git-data/
  399  vim /etc/gitlab/gitlab.rb
  400  cd /var/opt/gitlab/git-data/repositories
  401  cd /var/opt/gitlab/git-data/
  402  sudo gitlab-ctl stop
  403  sudo gitlab-ctl reconfigure
  404  sudo gitlab-ctl restart
  405  sudo gitlab-ctl start
  406  sudo systemctl enable gitlab-runsvdir.service
  407  cat /etc/gitlab/initial_root_password