我对詹金斯很陌生。 我通过以下方式安装了詹金斯:
brew install jenkins-lts
将其安装在以下路径中:
/usr/local/Cellar/jenkins-lts/2.204.1/libexec/jenkins.war
然后我将jenkins.war
复制到下载文件夹并运行java -jar jenkins.war
的命令。
当我打开http://localhost:8080时,它总是向我显示503错误,如下所示:
Request URL: http://localhost:8080/login?from=%2F
Request Method: GET
Status Code: 503 Service Unavailable
Remote Address: [::1]:8080
Referrer Policy: no-referrer-when-downgrade
Cache-Control: no-cache,no-store,must-revalidate
Content-Encoding: gzip
Content-Length: 483
Content-Type: text/html;charset=utf-8
Date: Fri, 17 Jan 2020 13:20:33 GMT
Expires: 0
Server: Jetty(9.4.z-SNAPSHOT)
X-Content-Type-Options: nosniff
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en
Cache-Control: no-cache
Connection: keep-alive
Cookie: Idea-9162083a=7af35695-da6a-4307-a39e-b0493b0245ba; JSESSIONID.b339e4d1=node06g9kw8xovnem1325lww2jfx880.node0; JSESSIONID.4f333b19=node0dvxpga8oouhul4beqym36aa90.node0; JSESSIONID.5d0d8859=node017xvlsusr2w881dxdwyfw8bhg00.node0
Host: localhost:8080
Pragma: no-cache
Referer: http://localhost:8080/login?from=%2F
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
from: /
日志没有显示任何错误。
如果我尝试通过brew运行jenkins,它将显示一个错误:
Error: Formula `jenkins` is not installed.
java版本也是最新的。
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
我做错了什么?还是应该配置任何东西?
答案 0 :(得分:0)
我通过brew重新安装了詹金斯,并关闭了vpn,使用
命令 brew services start jenkins-lts
或
java -jar /usr/local/Cellar/jenkins-lts/2.204.1/libexec/jenkins.war
按预期工作。
感谢您的帮助。