Gitlab Server SETUP (For fedora23), gitlabfedora23
1. Install and configure the necessary dependencies
sudo yum install curl policycoreutils openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld
2. Add the GitLab package server and install the package
Download gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm through the following link 』:
Http://pan.baidu.com/s/1qXeuiNq
If you have any ideas, you can download the desired version of "https://packages.gitlab.com/gitlab/gitlab-ce /?#".
After the download is complete, of course it is installed: sudo rpm-I gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm
3. Configure and start GitLab
sudo gitlab-ctl reconfigure
4. Browse to the hostname and login
Username:root
Password:5 iveL! Fe
Access through a browser: http: // localhost or http: // ip
Login successful. You need to change the password for the First Login
Configuration:
Sudo mkdir-p/etc/gitlab
Sudo touch/etc/gitlab. rb
Sudo chmod 600/etc/gitlab. rb
Configuring the external URL for GitLab:
Add the following to the/etc/gitlab. rb file:
External_url "http://gitlab.example.com"
After the configuration is changed, run the following command (the configuration loading takes effect ):
Sudo gitlab-ctl reconfigure
Open, close, and restart a service:
# Start all GitLab components
Sudo gitlab-ctl start
# Stop all GitLab components
sudo gitlab-ctl stop
# Restart all GitLab components
sudo gitlab-ctl restart