使用 8080 时如何更改 jenkins 窗口服务的端口 [英] How to change port for jenkins window service when 8080 is being used

查看:27
本文介绍了使用 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.

推荐答案

  1. 转到您安装 Jenkins 的目录(默认情况下,它在 Program Files/Jenkins 下)
  2. 打开Jenkins.xml配置文件
  3. 搜索 --httpPort=8080 并将 8080 替换为您希望的新端口号
  4. 重启 Jenkins 以使更改生效
  1. Go to the directory where you installed Jenkins (by default, it's under Program Files/Jenkins)
  2. Open the Jenkins.xml configuration file
  3. Search --httpPort=8080 and replace the 8080 with the new port number that you wish
  4. Restart Jenkins for changes to take effect

这篇关于使用 8080 时如何更改 jenkins 窗口服务的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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