centos7 installation of Jenkins details

  • 2020-05-27 07:46:11
  • OfStack

CentOS7 Jenkins installation

Download

Download apache-tomcat-8.0.18.tar.gz from Jenkins

Install

The installation

Upload the RPM file to the /tmp directory

cd /tmp
rpm -ivh jenkins-1.599-1.1.noarch.rpm

set

/etc/sysconfig/jenkins

JENKINS_PORT="9081"
JENKINS_AJP_PORT="9082"

Set startup

chkconfig jenkins on

A firewall

New file/usr/lib/firewalld/services/jenkins xml


<?xml version="1.0" encoding="utf-8"?>
<service>
    <short>Jenkins</short>
    <description>Jenkins</description>
    <portprotocol="tcp"port="9081"/>
</service>

Modify firewall Settings


firewall-cmd --permanent --add-service=jenkins
firewall-cmd --reload

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: