如何在 Windows 中使用命令提示符在不同的端口而不是 8080 上启动 jenkins? [英] How to start jenkins on different port rather than 8080 using command prompt in Windows?
本文介绍了如何在 Windows 中使用命令提示符在不同的端口而不是 8080 上启动 jenkins?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有 jenkins.war,我从 Windows 中的命令提示符启动它:
I have jenkins.war and I started it from command prompt in Windows as:
java -jar jenkins.war
它启动得很好,很容易浏览为http://localhost:8080
It was started well and easily browsed as http://localhost:8080
我想从 9090 端口开始.我该怎么做?
I want to start on 9090 port. How can I do that?
推荐答案
在命令提示符下使用以下命令:
Use the following command at command prompt:
java -jar jenkins.war --httpPort=9090
如果您想使用 https,请使用以下命令:
If you want to use https use the following command:
java -jar jenkins.war --httpsPort=9090
详情在这里
这篇关于如何在 Windows 中使用命令提示符在不同的端口而不是 8080 上启动 jenkins?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文