How to change the jenkins port number on Ubuntu

  
                

Jenkins is a continuous integration tool based on Java development. In Ubuntu system, when the Jenkins is upgraded, the port is occupied. By modifying the Jenkins port number to solve this problem, the following small series will introduce Ubuntu. How to modify the Jenkins port number.

The port number is 8080, and the other procedures used by 8080, not to modify the port number 8080 jenkins occupied port.

By checking the /etc/init.d/jenkins script, you will find that you need to do two steps:

1. Modify the check_tcp_port command of the do_start function, and change the port number from 8080 to 8082

#

# Function that starts the daemon/service

#

do_start()

{

# the Default location is /var/run/jenkins/jenkins.pid but the parent directory needs to be created

mkdir `dirname $PIDFILE` ” /dev/null 2》&1

Copyright © Windows knowledge All Rights Reserved