美文网首页
An error occourred "Unable to co

An error occourred "Unable to co

作者: Beyfound | 来源:发表于2021-07-27 11:05 被阅读0次

之前申请了AWS的免费套餐,但是一直没有实际的使用起来,这次有一个小需求,要不断的Post一个API, 所以就准备在EC2 instance 上装一个Jenkins, 但是不幸的是,出现了问题。CSND和stackoverflow找遍了,没有适合的解决方案,但是最终还是在其他地方找到了一个好用的解决办法 原文链接

  • Environment
    Amazon Linux 2 AMI
    openjdk version "1.8.0_131"

  • Issue
    在登陆后选择Select plugins to install时出现unable to connect to Jenkins

    image.png
    image.png
  • Solution

  1. Stop Jenkins service
sudo systemctl stop jenkins
  1. Modify config.xml (it is better to back up it)
sudo vim /var/lib/jenkins/config.xml
  1. Make some changes to the config.xml
    Modify line 10 <useSecurity>true</useSecurity> to: <useSecurity>false</useSecurity> Delete lines <authorizationStrategy …/> and <securityRealm …> to</securityRealm>
    image.png
  2. Start the Jenkins service

相关文章

网友评论

      本文标题:An error occourred "Unable to co

      本文链接:https://www.haomeiwen.com/subject/dwanmltx.html