【问题标题】:How to setup jenkins in ubuntu 12.04 manually?如何在 ubuntu 12.04 中手动设置 jenkins?
【发布时间】:2015-03-30 20:54:47
【问题描述】:

我有一台运行 Ubuntu 12.04 的生产机器。我需要在上面设置 Jenkins。我正在尝试按照本教程进行操作-

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu https://www.digitalocean.com/community/tutorials/how-to-install-and-use-jenkins-on-ubuntu-12-04

但我无法使其工作,因为我尝试执行的第一行根本不起作用 -

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

这条线只是挂起,它没有做任何事情。这让我觉得有防火墙,我们无法访问任何外部链接。

这是我运行 wget 时得到的 -

david@machineA:~$ wget https://jenkins-ci.org/debian/jenkins-ci.org.key
--2015-03-30 13:21:20--  https://jenkins-ci.org/debian/jenkins-ci.org.key
Resolving jenkins-ci.org... 199.193.196.24
Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
Retrying.

--2015-03-30 13:21:44--  (try: 2)  https://jenkins-ci.org/debian/jenkins-ci.org.key
Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
Retrying.

--2015-03-30 13:22:07--  (try: 3)  https://jenkins-ci.org/debian/jenkins-ci.org.key
Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
Retrying.

--2015-03-30 13:22:31--  (try: 4)  https://jenkins-ci.org/debian/jenkins-ci.org.key
Connecting to jenkins-ci.org|199.193.196.24|:443...

那么现在有没有其他方法可以在我的生产机器中干净地设置 jenkins?

任何分步指导将不胜感激。

【问题讨论】:

  • 你通常如何在你的生产设备上安装东西?

标签: jenkins ubuntu-12.04 jenkins-plugins firewall


【解决方案1】:

如果您没有连接到 Internet,您可以修复您的 Internet 连接或手动下载 jenkins .deb 文件并将它们复制到您的生产机器。

【讨论】:

  • 我不太喜欢linux,所以如果你能一步一步地提供给我,那将有很大的帮助。我可以在哪里下载.deb 文件,我应该把它放在哪里?感谢您的帮助。
  • 从这里获取最新的pkg.jenkins-ci.org/debian 复制到您的服务器并执行dpkg -i filename.deb
  • 我可以将它复制到我的主目录,对吗?而在执行第二条命令之后,它会做什么呢?它是否按照教程中提到的方式自动启动?
  • 我建议你阅读你链接的教程。Jenkins will be launched as a daemon up on start. See /etc/init.d/jenkins for more details.
猜你喜欢
  • 2023-03-24
  • 1970-01-01
  • 2013-09-01
  • 1970-01-01
  • 2013-10-07
  • 2013-07-30
  • 1970-01-01
  • 2014-08-29
  • 2014-07-27
相关资源
最近更新 更多