GitLab:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第3行: 第3行:
== 安裝 ==
== 安裝 ==


 官方說明記憶體一般建議為8 GB<ref>{{Cite web |url=https://docs.gitlab.com/ee/install/requirements.html |title=Requirements |accessdate=2019-12-10}}</ref>,最少4 GB(在這種情況下需要外加4 GB的Swap)。
 官方說明記憶體一般建議為8 GB<ref>{{Cite web |url=https://docs.gitlab.com/ee/install/requirements.html |title=Requirements |accessdate=2019-12-10}}</ref>,最少4 GB(在這種情況下需要外加4 GB的Swap) 。實際測試發現剛裝完大約吃1.5 GB的記憶體,一個人自己用之後會到2.5 GB左右


 這邊介紹的是[[Ubuntu]]下的安裝過程<ref>{{Cite web |url=https://about.gitlab.com/install/?version=ce#ubuntu |title=GitLab Installation |accessdate=2019-12-10}}</ref>:
 這邊介紹的是[[Ubuntu]]下的安裝過程<ref>{{Cite web |url=https://about.gitlab.com/install/?version=ce#ubuntu |title=GitLab Installation |accessdate=2019-12-10}}</ref>:

2019年12月23日 (一) 06:54的版本

GitLab是一套以Git为中心而发展出来的软件。

安装

官方说明内存一般建议为8 GB[1],最少4 GB(在这种情况下需要外加4 GB的Swap)。实际测试发现刚装完大约吃1.5 GB的内存,一个人自己用之后会到2.5 GB左右。

这边介绍的是Ubuntu下的安装过程[2]

sudo apt install -y ca-certificates curl openssh-server postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" apt install gitlab-ee

最近的版本可能会需要处理安装时Let's Encrypt凭证申请失败的相关的问题[3]

移除

移除需要多个步骤[4]

sudo gitlab-ctl uninstall
sudo gitlab-ctl cleanse
sudo gitlab-ctl remove-accounts
sudo apt purge -y gitlab-ce
sudo rm -rf /etc/gitlab /opt/gitlab /var/log/gitlab /var/opt/gitlab

常用指令

  • sudo gitlab-ctl reconfigure
  • sudo gitlab-ctl renew-le-certs
  • sudo gitlab-ctl restart

参考资料

外部链接