Build a GitLab+Jenkins continuous integration environment under centos for your reference. The specific content is as follows
1. Install JDK
yum install -y java
2. Install jenkins
Add the Jenkins library to the yum library, and Jenkins will be downloaded and installed from here.
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.reporpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.keyyum install -y jenkins
If you cannot install it, go to the official website to download the jenkis rmp package, the official website address
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpm rpm -ivh jenkins-2.7.3-1.1.noarch.rpm
Configure the port of jenkis
vi /etc/sysconfig/jenkins
Find the modified port number:
JENKINS_PORT="8080" This port does not conflict and can not be modified
3. Start jenkins
service jenkins start/stop/restart
4. Open jenkins
Accessing the first entry in the browser will require the initial password to be entered as shown in the following figure.
The initial password is in: /var/lib/jenkins/secrets/initialAdminPassword
Select "Install suggested plugins" to install the default plugin, and Jenkins will download the relevant plugin by itself to install it.
Create a Super Administrator Account
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.