前置安裝
更新
sudo yum -y update
安裝Curl,policycoreutils-python,openssh-server
sudo yum install -y curl policycoreutils-python openssh-server
安裝郵件服務
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
開啟防火牆
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
開啟SSHD服務(Port 22)
sudo systemctl enable sshd
sudo systemctl start sshd
安裝GitLab Server
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ee
修改設定
sudo vi /etc/gitlab/gitlab.rb
找到改成你的IP或Domain
external_url 'http://gitlab.example.com'
最後執行
sudo gitlab-ctl reconfigure
結語
瀏覽您的網站,第一次會進行root密碼變更。
完成。