Jenkins.log在Ubuntu 14.04桌面上的位置 [英] Jenkins.log location on Ubuntu 14.04 desktop

查看:133
本文介绍了Jenkins.log在Ubuntu 14.04桌面上的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在Ubuntu 14.04台式机上运行Jenkins实例.我已经通过WAR发行版安装了Jenkins,并在主机上将Jenkins作为服务运行.

I am currently running a Jenkins instance on an Ubuntu 14.04 desktop machine. I have installed Jenkins via WAR distribution and am running Jenkins as a service on the host machine.

我正在尝试访问在此处描述的jenkins.log文件.在Jenkins Wiki上的日志记录文档中.访问此文件的目的是确保在Jenkins Web UI不可用并且Jenkins存在问题的情况下,我们有一个日志可以使用.

I am trying to access the jenkins.log file described here in the logging documentation on the Jenkins wiki. The purpose of accessing this file is to be sure we have a log to use in the event that Jenkins web UI is unavailable and there is an issue with Jenkins.

我已经按照文档建议在/var/log/jenkins/中进行了查看,但是该文件夹中唯一的文件是配置文件.

I've taken a look in /var/log/jenkins/ as the documentation suggests, however the only file in that folder is a config file.

此外,根据文档,我还仔细检查了/etc/default/jenkins和/etc/sysconfig/jenkins目录.这两个目录中的每一个在我的机器上都不存在.

Also, per the documentation, I have double checked the /etc/default/jenkins as well as the /etc/sysconfig/jenkins directories. Each one of these two directories does not exist on my machine.

我还尝试使用'find'命令从命令行进行搜索,以及使用Ubuntu文件浏览器搜索系统.这两种方法均未产生jenkins.log文件.

I have also tried searching from command line using the 'find' command, as well as searching my system using the Ubuntu file explorer. Each of these approaches yielded no jenkins.log file.

  • 在我的理解下,我会纠正为输出Jenkins系统日志吗? 到jenkins.log文件?
  • jenkins.log文件在我的计算机上的什么位置?
  • 这是在无法访问Web UI时解决Jenkins问题的最佳方法吗?
  • Am I correct in my understanding that Jenkins system logs are output to the jenkins.log file?
  • Where might the jenkins.log file be located on my machine?
  • Is this the best approach in troubleshooting issues with Jenkins when the web UI is inaccessible?

推荐答案

  • 我是否理解为将Jenkins系统日志输出到jenkins.log文件?
    • 是的,您是严厉的.内部引擎,插件等将其日志保存在jenkins日志文件中
      • Am I correct in my understanding that Jenkins system logs are output to the jenkins.log file?
        • Yes you are rigth. Internal engines, plugins, etc saves its logs in jenkins log file
          • 在计算机中作为服务执行的命令行是什么?
          • Yes you have the jenkins log file or a web alternative : https://your.jenkins.com/log/all but jenkins.log has more information

          找到詹金斯日志路径的步骤

          • 找到jenkins服务文件:

          • locate jenkins service file :

          /etc/default/jenkins:的位置,用于大多数Linux发行版.

          /etc/default/jenkins: location for most of the Linux distributions.

          /etc/sysconfig/jenkins:用于RedHat/CentOS分发的位置.

          /etc/sysconfig/jenkins: location for RedHat/CentOS distribution.

          打开它,您可能会看到:

          Open it and probably you will see :

          NAME =詹金斯

          JENKINS_LOG =/var/log/$ NAME/$ NAME.log

          JENKINS_LOG=/var/log/$NAME/$NAME.log

          因此,您的文件/var/log/jenkins/jenkins.log必须存在.如果不像您说的那样,请尝试添加此行

          So your file /var/log/jenkins/jenkins.log must be exist. If not like you said, try to add this line

          这篇关于Jenkins.log在Ubuntu 14.04桌面上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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