# 安装所需的软件包
sudo yum install -y curl policycoreutils-python openssh-server
# 设置开机自启
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
# 或者关闭防火墙
iptables -F
# 邮件服务
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
# 可能下载不下来,不过可以手动安装
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
# 或者手动安装,gitlab下载地址:
https://docs.gitlab.com/omnibus/manual_install.html
# 修改域名
vim /etc/gitlab/gitlab.rb
#需要修改的内容
external_url 'http://xxxx'
#重新配置GitLab
gitlab-ctl reconfigure
#查看gitlab状态
gitlab-ctl status
# 重启gitlab
gitlab-ctl restart
#首次登录可以使用root登录,密码自设