Install Jenkins on linux centos (non-docker way)

Write in front#

I have written that Asp.net Core uses Jenkins + Dockor to achieve continuous integration and automated deployment (1): Jenkins installs this jenkisn installation process, but this article uses docker installation. After the actual use process:* I don't recommend novices to use docker to install jenkins*

Novices who use docker to install jenkins may encounter many problems and consume unnecessary time and energy;

Operating environment#

centos:7.2
cpu: 1 core 2G memory 1M bandwidth

Install java

Because jenkins is developed in java, javajdk needs to be installed first

sudo yum install java

After installation, check whether the installation is successful

java -version

# Successful installation output
openjdk version "1.8.0_191"
OpenJDK Runtime Environment(build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM(build 25.191-b12, mixed mode)

Install git

not necessary. Generally, if you need jenkins to directly pull the code of the git service to build and deploy, you must install it

( Installation reference)

Start installing jenkins#

installation##

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins

Change setting##

vim /etc/sysconfig/jenkins

# Modify the configuration and I changed it to run as root user
$JENKINS_USER="root"

# Modify the listening port I use 7080 here
JENKINS_PORT="7080"

# Modify directory permissions
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins

start up##

systemctl start jenkins

First run (initialize jenkins)

This is the same as my article https://www.cnblogs.com/xiaxiaolu/p/10041788.html, I won’t repeat it and cut a few pictures

reference#

https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions

https://www.cnblogs.com/stulzq/p/9291237.html

Recommended Posts

Install Jenkins on linux centos (non-docker way)
Install Jenkins on centos7
Install MySQL 8.0.16 on Linux Centos
How to install Jenkins on CentOS 8
How to install Jenkins on CentOS 8
Install MySQL on Linux CentOS7 (Windows)
​Install Oracle database on CentOS Linux
Install Docker on Centos7
install LNMP on centos7.4
Install Java on Centos 7
Nodejs install on centos7
Install FFmpeg on CentOS 8
Install RabbitMQ on CentOS 7
Install Node.js on Centos
Linux Centos7 install jdk1.8
CentOS (linux) install PostgreSQL
Maven install on centos7
Install MongoDB on CentOS 7
Jenkins build on centos
Install Surelog on CentOS8
Install Jenkins under Centos 7
Openjdk install on centos7
install RabbitMQ on centos
Install RabbitMQ on CentOS 7
install Docker on centos6.5
install oracle on centos
Install Elasticsearch 6 on centos7
Install RabbitMQ on CentOS7
Centos 7 install JDK (Linux install jdk)
How to install RPM packages on CentOS Linux
The easiest way to install Chrome on CentOS 6
Install mysql online on centos
Know Linux and install CentOS
Install ElasticSearch 7.x on CentOS 7
Linux Centos7 install redis tutorial
Install python3 on linux, keep python2
Install docker transfer on Centos7
Install MySQL under Linux (CentOS 7)
Install docker on Centos system
install EPEL repo on centos
How to quickly install docker on Linux (Centos version)
Install Zabbix 3.4 based on CentOS 7
install virtualbox on centos server
CentOS 6.8 under linux install mongodb
Install Nginx server on CentOS 7
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Common Linux operations (based on centos7)
Install JDK8 in rpm on CentOS7
How to install Memcached on CentOS 8
Install MATE or XFCE on CentOS 7
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
Install Hadoop cluster on Linux (CentOS7+hadoop-2.8.0)
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8