本文介绍了如何在Mac上获取jenkins的初始管理员密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过下载jenkins-2.2.pkg安装了jenkins.安装完成后,Chrome自动连接到http://localhost:8080/login?from=%2F,我看到以下消息:

I installed jenkins by downloading jenkins-2.2.pkg. After the installation is complete, Chrome auto-connected to http://localhost:8080/login?from=%2F and I see the following message:

/Users/Shared/Jenkins/Home/secrets/initialAdminPassword

请从任一位置复制密码并将其粘贴在下面.

Please copy the password from either location and paste it below.

但是,即使我是管理员用户,也无法访问Mac图书上的secrets文件夹.

But I don't have access to secrets folder on my Mac book even when I'm the Admin user.

请帮助我如何找到初始管理员密码?

Please help me on how to find the initial admin password?

推荐答案

  1. 导航到该文件夹​​/Users/Shared/Jenkins/Home
  2. 右键单击secrets/文件夹,然后选择获取信息"
  3. 向下滚动到弹出窗口的右下角,然后单击锁定图像>输入密码>确定
  4. 单击弹出窗口左下角的"+"并添加用户4.5单击设置图标-左下角,然后应用更改.
  5. 打开"secrets"文件夹,然后找到initialAdminPassword文件以获取初始管理员密码.如果您没有该文件的权限,则需要右键单击该文件并选择获取信息",然后重复上述步骤3和4来访问该文件.
  1. Navigate to this folder /Users/Shared/Jenkins/Home
  2. Right click on secrets/ folder and select "Get Info"
  3. Scroll down to the right bottom corner of the pop up window and click on the lock image > enter your password > ok
  4. Click on the "+" at the left bottom corner of the pop up window and add the user4.5 Click on Settings icon - left bottom and Apply changes.
  5. Open the "secrets" folder and find the initialAdminPassword file to get the initial admin password. If you don't have permission to the file, you need to right click on the file and select "Get Info" then repeat step 3 and 4 above to access the file.

这篇关于如何在Mac上获取jenkins的初始管理员密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 08:18