Complete the command to start Jenkins using the WAR file.
java -jar [1]The Jenkins WAR file is named jenkins.war. Running java -jar jenkins.war starts Jenkins.
Complete the command to run Jenkins on port 8081 instead of the default port.
java -jar jenkins.war --httpPort=[1]Using --httpPort=8081 tells Jenkins to listen on port 8081 instead of the default 8080.
Complete the command to run Jenkins with a custom URL prefix.
java -jar jenkins.war --prefix=[1]The --prefix option sets the URL prefix, not the home directory. To set the home directory, use the environment variable JENKINS_HOME. Use /custom_home as a URL prefix example.
Fill both blanks to run Jenkins on port 9090 with a custom prefix URL.
java -jar jenkins.war --httpPort=[1] --prefix=[2]
To run Jenkins on port 9090 with a URL prefix /jenkins, use --httpPort=9090 and --prefix=/jenkins.
Fill all three blanks to run Jenkins with a custom home directory, on port 8085, and with a prefix URL.
JENKINS_HOME=[1] java -jar jenkins.war --httpPort=[2] --prefix=[3]
Set the environment variable JENKINS_HOME to /var/lib/jenkins to specify the Jenkins home directory. Run Jenkins on port 8085 with the prefix URL /ci.