Gitlab setup tutorial in CentOS7 environment, gitlabcentos7
1. install and configure necessary Dependencies
If you install a suffix to send an email, select "website. Instead of using the suffix, you can also use Sendmail or configure a custom SMTP server and configure an SMTP server.
In Centos 6 and 7, the following commands enable HTTP and SSH access to the firewall in the system.
Disable the firewall systemctl stop firewalld. service first. disable the firewall from enabling systemctl disable firewalld. service.
1.sudo yum install curl openssh-server openssh-clients postfix cronie2.sudo service postfix start3.sudo chkconfig postfix on4.sudo lokkit -s http -s ssh
If lokkit cannot find the command
yum install lokkit
2. Add the GitLab package server and installation package
You can download it and install it. Otherwise, it is particularly slow in centos environment. I installed a gitlab-ce-10.0.2-ce.0.el7.x86_64.rpm and copied it to centos.
Then directly execute Step 1
Install 5. curl-LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-XXX.rpm/download6.rpm-I gitlab-ce-10.0.2-ce.0.el7.x86_64.rpm -- force -- nodeps in centOS
3. Configure and start GitLab
sudo gitlab-ctl reconfigure
Direct access to centOS IP
Modify the gitlab repository address because the default address is localhost.
cd /opt/gitlab/embedded/service/gitlab-rails/config vim gitlab.yml
Modify the modified address