System environment
Operating system: CentOS6.9
Shutting down the firewall
Installation steps
1. Installing Postfix
2. Download the RPM package and install
3. Configure GITLAB,VIM/ETC/GITLAB/GITLAB.RB, specify ip+ port number
4. Perform the configuration and start.
--gitlab-ctl Reconfigure
--gitlab-ctl start
5. Through Web Access, such as http://192.168.1.76:8089
Common commands:
Update configuration: [[email protected] ~]# Gitlab-ctl reconfigure
Start: [[email protected] ~]# gitlab-ctl start
STOP: [[email protected] ~]# Gitlab-ctl stop
Restart: [[email protected] ~]# gitlab-ctl restart
Precautions
1,gitlab access to 502 error after startup
This is usually caused by two reasons.
1) Less than 4GB of memory
2) 8080 ports are occupied because the default port number for the Gitlab component unicorn is 8080, so you need to switch to a different port, such as 8089.
Resources
1. Official website: https://about.gitlab.com/installation/
2. Chinese: https://www.gitlab.com.cn/installation/#centos-6
3. http://www.cnblogs.com/wenwei-blog/p/5861450.html
4. http://yijiebuyi.com/blog/49aa7d3793aeafeb77da67a4159ec1aa.html
Linux under Gitlab Server Setup