在Debian上安装GitLab的步骤如下:
sudo apt update
sudo apt install curl openssh-server ca-certificates tzdata perl
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
在安装过程中,系统会提示你输入GitLab的访问域名(external URL),请将其替换为你的服务器IP地址或域名。
sudo apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
sudo gitlab-ctl start
请注意,以上步骤适用于Debian 10(buster)及更高版本。如果你使用的是Debian 8(stretch),可能需要稍作调整,例如使用sudo apt-get install gitlab-ce=版本号
来指定安装特定版本的GitLab。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>