First, Gitlab installation operation procedure
- Login official website https://about.gitlab.com/downloads/According to the system version you need, the author uses centos6,
- Check to see if your server meets hardware requirements. The Gitlab package is designed for 64-bit systems. 32-bit operating system, consider the different installation methods.
- Install and configure the necessary dependencies
# sudo yum install curl openssh-server openssh-clients postfix Cronie
# sudo service postfix start
# sudo chkconfig postfix on
# sudo lokkit–s http–s ssh
- Add Gitlab Package Server installation package
# CURL-SS Https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# sudo yum install Gitlab-ce
- Yum Error encountered: Cannot retrieve repository metadata (Repomd.xml) for repository what to do
# yum Clean all, then
New /etc/yum.repos.d/gitlab-ce.repo
, content is
[Gitlab-ce]
Name=gitlab-ce
Baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
Repo_gpgcheck=0
Gpgcheck=0
Enabled=1
Gpgkey=https://packages.gitlab.com/gpg.key
In the execution
# sudo yum
# sudo yum install Gitlab-ce
- Configure and start Gitlab
sudo gitlab-ctl reconfigure
- Browse to host name and login
In your first open browser enter your server IP address 192.168.0.200 access, you will be redirected to a password reset screen to provide the password for the initial administrator account. Enter the password you want and you will be redirected back to the login screen.
The user name for the default account is "root". Provide the password that you created and the password for the login. After you sign in, you can change the user name.
Gitlab Installation Operating Instructions