CENTOS7 installation Gitlab
1. Gitlab profile.
GitLab is an open source project for the warehouse management system. Use Git as a code management tool and build on this Web service.
2. Installation steps.
Install the configuration Gitlab the necessary dependent components.
Sudo yum–y Install Curl Openssh-server
650) this.width=650; "title=" clip_image002 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M01/70/31/ Wkiom1wzpytrxrqdaabh0aglony776.jpg "width=" "height=" 406 "/>
If the following error message appears, follow the list command.
650) this.width=650; "title=" clip_image004 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M02/70/31/ Wkiom1wzpyxal6u7aadzxt69qi4002.jpg "width=" "height=" 304 "/>
Switch root user
Su–root
650) this.width=650; "title=" clip_image006 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M00/70/31/ Wkiom1wzpyxcnipuaaeibfo-gns663.jpg "width=" "height=" 413 "/>
Modify permissions for a sudoers file
chmod 777/etc/sudoers
650) this.width=650; "title=" clip_image008 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M01/70/31/ Wkiom1wzpybr5r3iaae2wqkkgzm363.jpg "width=" "height=" 410 "/>
Edit file, add current user
Vim/etc/sudoers
650) this.width=650; "title=" clip_image010 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M02/70/2E/ Wkiol1wzp3daznw8aagngdbatos964.jpg "width=" "height=" 399 "/>
Then modify the file permissions to 440
Chmod 440/etc/sudoers
Switch user back to William
Su William
Re-execute command Sudo yum–y Install Curl Openssh-server
650) this.width=650; "title=" clip_image012 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M00/70/2E/ Wkiol1wzp3dhqimtaad37md-sby088.jpg "width=" "height=" 371 "/>
sudo systemctl enable sshd
650) this.width=650; "title=" clip_image014 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M00/70/31/ Wkiom1wzpyjtk5puaadtowo80wc714.jpg "width=" "height=" 331 "/>
Enable SSH service sudo systemctl start sshd
Installing the Postfix mail server
Sudo yum–y Install Postifx
650) this.width=650; "title=" clip_image016 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image016 "src=" http://s3.51cto.com/wyfs02/M01/70/31/ Wkiom1wzpyit-sxqaactnywvqcy533.jpg "width=" "height=" 242 "/>
Enable the Postfix service
Sudo Systemctl enable Postfix
650) this.width=650; "title=" clip_image018 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image018 "src=" http://s3.51cto.com/wyfs02/M02/70/2E/wKioL1Wzp3Lh-hv_ Aaa3we2ew7u018.jpg "width=" "height=" 169 "/>
Start the Postfix service
Sudo systemctl start Postfix
650) this.width=650; "title=" clip_image020 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image020 "src=" http://s3.51cto.com/wyfs02/M00/70/2E/ Wkiol1wzp3kt2zjqaabhqtzibt4015.jpg "width=" "height=" 290 "/>
Allow service HTTP through the firewall
Sudo firewall-cmd–permanent–add-service=http
650) this.width=650; "title=" clip_image022 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image022 "src=" http://s3.51cto.com/wyfs02/M01/70/2E/ Wkiol1wzp3ptcmzqaabk2j8jfxu039.jpg "width=" "height=" 261 "/>
Reload the firewall
Sudo Systemctl Reload Firewalld
650) this.width=650; "title=" clip_image024 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image024 "src=" http://s3.51cto.com/wyfs02/M02/70/2E/ Wkiol1wzp3oslspoaacfkd5jucm612.jpg "width=" "height=" 273 "/>
Download the script to install Gitlab, and install
Curl Https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
650) this.width=650; "title=" clip_image026 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image026 "src=" http://s3.51cto.com/wyfs02/M00/70/2E/ Wkiol1wzp3sxrpiuaadllosz2uk219.jpg "width=" "height="/>
sudo yum install Gitlab-ce
650) this.width=650; "title=" clip_image028 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image028 "src=" http://s3.51cto.com/wyfs02/M00/70/2E/ Wkiol1wzp3tjnhk-aad-y6dggls075.jpg "width=" "height=" 355 "/>
After a long download finally the installation is complete.
650) this.width=650; "title=" clip_image030 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image030 "src=" http://s3.51cto.com/wyfs02/M01/70/32/ Wkiom1wzpyyzt7x2aahgmznqt-0868.jpg "width=" "height=" 397 "/>
650) this.width=650; "title=" clip_image032 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image032 "src=" http://s3.51cto.com/wyfs02/M00/70/32/ Wkiom1wzpy2q77beaagqdpeszro752.jpg "width=" "height=" 434 "/>
Configure and start Gitlab
Sudo Gitlab-ctl Reconfigure
650) this.width=650; "title=" clip_image034 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image034 "src=" http://s3.51cto.com/wyfs02/M00/70/2E/ Wkiol1wzp3fjaqz3aag_coo7dte074.jpg "width=" "height=" 410 "/>
Enter the server IP in the browser, the following screen will appear.
650) this.width=650; "title=" clip_image036 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image036 "src=" http://s3.51cto.com/wyfs02/M01/70/2E/ Wkiol1wzp3fqeapnaaedc27fgjy580.jpg "width=" "height=" 368 "/>
Log in with the default user name password
User name: Root
Password: 2ivel! Fe
CENTOS7 installation Gitlab