什麼狀況呢,如今想起來從新啓動jenkins時發現,一切都要從頭開始。。。html
輸入原始密碼:spa
提示密碼在:/var/root/.jenkins/secrets/initialAdminPasswordcode
可是Finder找不到這個路徑,終端中執行中這個操做:xml
cd /var
htm
ls
jenkins
sudo chmod -R 777 root
it
lsio
而後就能夠Finder中進到這個路徑了class
修改權限:/var/root/.jenkins/config.xml終端
修改權限:
修改前: <authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
修改後<authorizationStrategyclass="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
重啓mac後啓動jenkins
在終端中依次輸入命令:
cd /Users/ligaijiang/Library/Tomcat12/binsudo chmod 755 *.shsudo sh startup.sh訪問地址:http://172.31.40.249:8777/jenkins 用戶名:admin---密碼:123456