GitLab:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→安裝) |
(→安裝) |
||
第13行: | 第13行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
最近的版本可能會需要處理[[Let's Encrypt]]相關的問題<ref>{{Cite web |url=https://gitlab.com/gitlab-org/gitlab/issues/38255 |title=Unable to renew letsencrypt certificate anymore |accessdate=2019-12-18}}</ref>。 | 最近的版本可能會需要處理 安裝時[[Let's Encrypt]] 憑證申請失敗的 相關的問題<ref>{{Cite web |url=https://gitlab.com/gitlab-org/gitlab/issues/38255 |title=Unable to renew letsencrypt certificate anymore |accessdate=2019-12-18}}</ref>。 | ||
== 移除 == | == 移除 == |
2019年12月18日 (三) 02:32的版本
GitLab是一套以Git為中心而發展出來的軟體。
安裝
官方說明記憶體最少4 GB(在這種情況下需要外加4 GB的Swap),一般建議為8 GB[1]。
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
參考資料
- ↑ Requirements. [2019-12-10].
- ↑ GitLab Installation. [2019-12-10].
- ↑ Unable to renew letsencrypt certificate anymore. [2019-12-18].
- ↑ Is it fine to remove the /opt/gitlab/ directory manually after removing the gitlab package from the system?. 2016-09-14 [2019-12-10].
外部連結
- 官方网站 (英文)