I have jenkins.war and I started it from command prompt in Windows as:
java -jar jenkins.war
It was started well and easily browsed as http://localhost:8080
I want to start on 9090 port. How can I do that?
I have jenkins.war and I started it from command prompt in Windows as:
java -jar jenkins.war
It was started well and easily browsed as http://localhost:8080
I want to start on 9090 port. How can I do that?
With Ubuntu 14.4 I had to change the file /etc/default/jenkins
E.g.
and restart the service
For
Fedora
,RedHat
,CentOS
and alike, any customization should be done within/etc/sysconfig/jenkins
instead of/etc/init.d/jenkins
. The purpose of the first file is exactly the customization of the second file.So, within
/etc/sysconfig/jenkins
, there is a theJENKINS_PORT
variable that holds the port number on which Jenkins is running.In CentOS/RedHat
vim /etc/sysconfig/jenkins
change it to any port you want.
On OSX edit file:
and edit port to you needs.
Open the
jenkins.xml
in the jenkins home folder (usuallyC:\Program Files (x86)\Jenkins
) and change the port number:httpPort=xxxx
to
httpPort=yyyy
then restart the service. it should change the setting permanently.
In *nix In CentOS/RedHat
vim /etc/sysconfig/jenkins
In windows open XML file C:\Program Files (x86)\Jenkins\jenkins.xml
now you have to restart it doesnot work unless you restart http://localhost:8080/restart then after restart http://localhost:8083/ all should be well so looks like the all above response which says it does not work We have restart.