In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the method of building GitLab server environment for everyone. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.
Download and install CentOS7
Click to jump to CentOS7 download address, directly download the second CentOS-7-x86_64-DVD-2003.iso, the size is 4.5G, need to wait patiently. (Installation of Gitlab Server on CentOS6 is not recommended)
The exact steps to install CentOS 7 are covered in the Linux series articles and will not be described in detail here.
After logging into the system, open the configuration file with cd /etc/sysconfig/network-scripts and use ll| less, view configuration, change first file using vim editor:
Set BOOTPROTO to static
Set ONBOOT to yes
Add IP addresses, gateways, domain name resolvers
This can be modified by referring to the Linux network configuration.
TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=staticDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=ens33UUID=bc7cf8c9-c0f2-4089-9692-093efb65ba0cDEVICE=ens33ONBOOT=yesIPADDR=192.168.217.131GATEWAY=192.168.217.2DNS1=192.168.217.2
Here you can download it using the installation package: Gitlab's rmp package can be downloaded from Gitlab's official website.
Download the rpm package for gitlab and upload it to the opt directory of Linux using the Xftp tool.
Install Gitlab
If you downloaded it as an rpm package of gitlab-ce, paste the following code into a Linux terminal and run it:
sudo rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpmsudo yum install -y curl policycoreutils-python openssh-server croniesudo lokkit -s http -s sshsudo yum install postfixsudo service postfix startsudo chkconfig postfix oncurl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashsudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce
Of course, if the VM virtual machine does not download vmtool, it cannot be pasted. At this time, you can choose to use shell scripts to install it: (Installation requires patience)
Step 1: Create file in Linu terminal: vim install.sh
Step 2: Paste the installation command above.
Step 3: Change to executable permissions: chmod 755 install.sh
Step 4: Execute the installation script: ./ install.sh
Perform initialization configuration: gitlab-ctl reconfigure
Start gitlab service: gitlab-ctl start (stop gitlab service command is: gitlab-ctl stop)
Reboot: reboot
After restart, close firewall: service firewall stop
After all settings are completed, you can access the Linux server IP address in the Windows browser. Mine is 192.168.217.131. If you want to access the domain name specified by EXTERNAL_URL, you need to configure the domain name server or local hosts file.
After setting root password, log in using root account:
At this point, a series of operations have not been much different from GitHub, and will not be demonstrated in detail.
About "GitLab server environment building method" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.