Install Jenkins under Centos 7

Introduction to Jenkins#

Jenkins is an open source platform that supports tasks such as automated construction and deployment. Basically, it can be said that it is an indispensable tool for continuous integration (CI) and continuous release (CD).

Install Java environment#

CentOS 7 install JAVA environment (JDK 1.8)

Install Git

yum install git

Install Maven#

yum install maven

Install Jenkins#

yum install jenkins

Modify the jenkins startup script

vi /etc/init.d/jenkins

Modify candidates to add java optional path:

candidates="
/usr/java/jdk1.8.0_181/bin/java
"

Start Jenkins and set Jenkins to boot

# Reload service (make the modified Jenkins startup script take effect)
systemctl daemon-reload

# Start the Jenkins service
systemctl start jenkins

# Start the Jenkins service
systemctl stop jenkins

# Set the Jenkins service to start on boot
# Since Jenkins is not a Native Service, you need to use the chkconfig command instead of the systemctl command
sudo /sbin/chkconfig jenkins on

Jenkins initialization#

Query Jenkins default password
cat /var/lib/jenkins/secrets/initialAdminPassword

After entering the password, install the recommended plugin

Add admin user

Configure Jenkins URL

Start using Jenkins

Start Jenkins

service jenkins start

Shut down Jenkins

service jenkins stop

Query the Jenkins installation path

whereis jenkins

Recommended Posts

Install Jenkins under Centos 7
Install mysql5.7 under CentOS7
Install ActiveMQ under Centos7
Install PostgreSQL12 under CentOS7
Install CentOS under VMware
Install mysql under Centos 7
Install Jenkins on centos7
Install MariaDB under MariaDB Centos7
Install mysql5.1 under CentOS6.5
Install Oracle11gR2 database under CentOS6.9
CentOS + Jenkins
Install MySQL under Linux (CentOS 7)
Install Java JDK8 under CentOS6
1.5 Install Centos7
Install MongoDB database under CentOS7
CentOS 6.8 under linux install mongodb
Install Mesos tutorial under CentOS7
Install and configure keepalived under CentOS 5.9
[Introduction to redis] Install redis under Centos
Installation under centos6.9 of jenkins learning
How to install Jenkins on CentOS 8
How to install Jenkins on CentOS 8
Install Harbor mirror warehouse under CentOS
Install Python3 and ansible under CentOS8
Install the latest OpenCV4.3 under Centos8
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
Vmware install CentOS6
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS7 build jenkins
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
ubuntu install Jenkins
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk