jenkins安装部署记录
docker方式部署:
docker pull jenkins/jenkins 报错
failed to register layer: ApplyLayer exit status 1 stdout: stderr: unlinkat /root/.gnupg: invalid argument
有解决方法可以留言沟通
虚拟机方式部署:
下载最新稳定版:
wget http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war
cd /data/jenkins
nohup java -DJENKINS_HOME=/data/jenkins/ -jar jenkins.war --httpPort=8081 &
启动报错:
AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"?
解决:
yum -y install fontconfig
nohup java -DJENKINS_HOME=/data/jenkins/ -Djava.awt.headless=true -jar jenkins.war --httpPort=8081 &
解决方法参考:https://www.jianshu.com/p/0e432a050e10
日志中会输出登录密码:
This may also be found at: /data/jenkins/secrets/initialAdminPassword