51Testing软件测试论坛

标题: Jenkins 登录的问题 [打印本页]

作者: 杲杲日木    时间: 2015-7-8 13:31
标题: Jenkins 登录的问题
Jenkins登录就报错,无法登录,有人遇到吗
[attach]96054[/attach]
我查了一些说要看Jenkins server console output,关机是现在我不知道JENKINS_HOME的目录在哪,有人知道怎查这个home在哪个目录吗(Ubuntu系统)?


作者: 土土的豆豆    时间: 2015-7-9 09:35
直接find 目录或者用grep定位;
一般还是你配置问题啦~没事的
网上完整Linux环境下部署方案都有 ,参考下先
作者: fangty    时间: 2015-7-9 10:30
一般情况下,默认地址在C:\Documents and Settings\AAA\.jenkins
作者: jingzizx    时间: 2015-7-9 11:46
你报错的原因是指你配置错误,提示让你查看服务端控制台输出,即查看日志
JENKINS_HOME的目录应该是指你安装的目录地址
启动jenkins:start_jenkins.sh
#!/bin/bash
JENKINS_ROOT=/home/AAA/jenkins--------指你的安装目录
export JENKINS_HOME=$JENKINS_ROOT/jenkins_home-----这个应该是你要找的,你看看是不是
java -jar $JENKINS_ROOT/jenkins.war --httpPort=8000
chmod a+x start_jenkins.sh
nohup ./start_jenkins.sh > jenkins.log 2>&1 &

作者: bingtang5    时间: 2015-7-30 16:25
本帖最后由 bingtang5 于 2015-7-30 16:33 编辑

看图[attach]96331[/attach]
登陆问题,你应该是设置登陆权限了,去掉对勾
[attach]96332[/attach]
把自己锁住了的话
看下边
Now it may happen that, during this process, you may end up locking yourself out of Jenkins. This
can happen if, for example, you save the matrix configuration without having correctly set up your
administrator. If this happens, do not panic—there is an easy fix, as long as you have access to Jenkins’s
home directory. Simply open up the config.xml file at the root of the Jenkins home directory. This
will contain something like this:
<hudson>
<version>1.391</version>
<numExecutors>2</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
...
The thing to look for is the <useSecurity> element. To restore your access to Jenkins, change this
value to false, and restart your server. You will now be able to access Jenkins again, and set up your
security configuration correctly.


作者: jingzizx    时间: 2017-5-8 21:53
看看




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2