如何在Ubuntu 12.04中更改Jenkins安装的端口号 [英] how to change port number for Jenkins installation In Ubuntu 12.04

查看:126
本文介绍了如何在Ubuntu 12.04中更改Jenkins安装的端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在ubuntu中安装jenkins.我遵循以下命令:

I am trying to install jenkins in ubuntu. I have followed the commands below:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list

然后

apt-get update

apt-get install jenkins

但显示

  • 启动Jenkins Continuous Integration Server Jenkins所选的http端口(8080)似乎正在由另一个程序使用 请选择用于詹金斯的其他端口
  • Starting Jenkins Continuous Integration Server Jenkins The selected http port (8080) seems to be in use by another program Please select another port to use for jenkins

需要有关如何设置其他端口让Jenkins运行的帮助.

Need help on how to set a different port for Jenkins to run.

推荐答案

您可以转到/etc/default/jenkins并将--httpPort=9999或任何端口添加到JENKINS_ARGS.

You can go to /etc/default/jenkins and add --httpPort=9999 or whatever port to JENKINS_ARGS.

然后,您应该使用sudo service jenkins restart重新启动Jenkins.

Then you should restart Jenkins with sudo service jenkins restart.

这篇关于如何在Ubuntu 12.04中更改Jenkins安装的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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