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

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持续集成服务器Jenkins选定的http端口(8080)似乎正在被另一个程序使用

需要关于如何设置Jenkins运行的不同端口的帮助.

推荐答案

First open the /etc/default/jenkins file.
Then under JENKINS_ARGS section, you can change the port like this HTTP_PORT=9999.

Then you should restart Jenkins with sudo service jenkins restart.

Then to check the status use this command sudo systemctl status jenkins

Linux相关问答推荐

在64位Linux Mint 21.2 Mate上呈现nvim中的文本对象时出现问题

为什么当凭证助手设置为存储 SSH 远程存储库时 git pull 不使用 .git-credentials

用于替换 struct 文档中文本的 Bash 脚本

如何恢复已停止的进程?

我想使用排序命令对第 5 列进行日期排序.但问题是格式不一致,有什么方法可以做到吗?

matlab中linux和windows上regexp()的不同行为

使用打印命令 Select 子域

为什么 Linux (x86) 的页面大小是 4 KB,这是如何计算的?

查看 linux 上的多核或多 CPU 利用率

bash 中的sed命令

在 cron 作业(job)中执行 PHP 脚本

如何在 Bash 中对齐空格分隔表的列?

用于 ssh 的类似 teamviewer 的工具?

将原始数据发送到 TCP 服务器的 Linux 工具

如何显示正在运行的进程列表 Python?

仅使用 proc 获取本地网络接口地址?

Linux命令将一个文件复制到多个文件

如何在 Linux 中将 .so 文件添加到 java.library.path

使用 WGET 运行 cronjob PHP

在linux中将制表符分隔的文件转换为csv的最快方法