First, build Gitlab
PS: Not experts in this area, mainly or one-click Installation-oriented.
1, enter the official website: https://about.gitlab.com/gitlab-com/
2, choose your own operating system: My side of the choice of Ubuntu 14
3, according to the prompt installation (but generally not successful installation)
-------------------------------------------------------
So I chose the self-contained Deb package and installed it with the Dpkg-i command.
1, can be based on official prompts to install the dependency package, generally openssh-server Postifx, the former is SSH authorized login use, the latter is gitlab default mail transfer software
2, download the Deb package (centos/red Hat series is another RPM), copied to the/tmp directory
(If the network can be connected to download, you can download to https://packages.gitlab.com/gitlab/gitlab-ce)
----------------
Baidu Cloud Disk Share:
Address: https://pan.baidu.com/s/1o83z0mi extract Password: 7hd6
3. Perform decompression and installation
Dpkg-i/tmp/gitlab-ce_8. 3.2-ce.0_amd64.deb
4. After installation, follow the instructions.
Gitlab-ctl Reconfigure
5, modify the HTTP access to the boot port, gitlab default use of Nginx
Vim/var/opt/gitlab/nginx/conf/gitlab-http.conf
Change the port 80 that resembles the following to a custom port, such as: 8080
server { *:;
6. Restart Gitlab
Gitlab-ctl restart
7, access to the domain name address and port (previously modified 8080), such as: http://gitlab.gabin.top:8080
The default account is: Root
Password: 5ivel!fe
II. Installation of Jenkins
1, enter the official website: https://jenkins.io/index.html
2, choose their own suitable system installation
3, you can choose to follow the command prompt at the top of the page to install, you can also choose to download the following Deb package upload to the server using the Dpkg-i command to decompress the installation
# Add warehouse to apt Software management wget -q-o-http:///Pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add-Echo deb http://pkg.jenkins.io/debian-stable binary/>>/etc/apt/sources.list# Update apt sudo apt-get update# install Jenkinssudoinstall-I Gitlba-ce.deb
4. Modify the Jenkins Port
Vim/etc/init.d/jenkins
Found: Http_port changed to the port you need
5. Restart Jenkins
Service Jenkins Restart
6, visit Jenkins, and install the required plugins (Maven, Gitlab Hook, git), these people do their own research, not difficult.
Continuous integration Environment (Gitlab+jenkins+shell)