如何使用Windows中的命令提示符在不同的端口而不是8080上启动jenkins? [英] How to start jenkins on different port rather than 8080 using command prompt in Windows?

查看:289
本文介绍了如何使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆