使用8080时如何更改jenkins窗口服务的端口 [英] How to change port for jenkins window service when 8080 is being used
本文介绍了使用8080时如何更改jenkins窗口服务的端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Windows虚拟服务器上安装了Jenkins,并希望将其作为窗口服务运行.
I installed Jenkins on a windows virtual server and want to run it as window service.
由于其他服务正在使用端口8080,因此我在jenkins.xml文件中将http端口更改为8081.但是,我根本无法启动localhost:8081/jenkins.我需要详细的说明/步骤来配置端口8081或运行Jenkins的内容.
Since the port 8080 is being used by other service, I changed the http port to 8081 in jenkins.xml file. However, I am not able to launch localhost:8081/jenkins at all. I need detail instruction/steps to configure port 8081 or something to run Jenkins.
推荐答案
- 转到安装Jenkins的目录(默认情况下,它位于Program Files/Jenkins下)
- 打开
Jenkins.xml
配置文件 - 搜索
--httpPort=8080
并将8080
替换为所需的新端口号 - 重新启动Jenkins,以使更改生效
- Go to the directory where you installed Jenkins (by default, it's under Program Files/Jenkins)
- Open the
Jenkins.xml
configuration file - Search
--httpPort=8080
and replace the8080
with the new port number that you wish - Restart Jenkins for changes to take effect
这篇关于使用8080时如何更改jenkins窗口服务的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文