- 安装并配置必要的依赖关系
On CentOS 7 (and RedHat/Oracle/Scientific Linux 7), the commands below will also open HTTP and SSH access in the system firewall.
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 systemctl reload firewalld
Next, install Postfix to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed.
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
- Add the GitLab package repository and install the package
Add the GitLab package repository.
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee
打开地址 默认的
Username: root
Password: 5iveL!fe
3 启动gitlab gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl stop
查看gitlab状态 gitlab-ctl status
热门评论
感谢分享 哈哈哈
安装gitlab实在太恶心了,在容器化时代,只要装一个docker,然后安装什么都简单了,只要pull一下,so easy