So when i try changing the port of my jenkins to 25176 with --httpPort=25176 it says that unrecgnized option

the port argument is not an argument of the jvm but an argument to the Jenkins application. So you will need to put it after the jenkins.war
java -XX ... -jar jenkins.war --httpPort=25176

1 Like