Install Jenkins on CentOS7

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
to get the installation source

rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
import public key

yum install jenkins
install Jenkins
press Y to confirm

vim /etc/sysconfig/jenkins
Modify the port number 8080 to 9090
JENKINS_PORT="9090"

firewall-cmd --zone=public --permanent --add-port=9090/tcp
firewall-cmd --reload
open firewall port 9090

service jenkins start
chkconfig jenkins on
启动Jenkins

Visit http://192.168.1.13:9090/

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324611558&siteId=291194637