以下是在Ubuntu上配置Jenkins主节点的步骤:
sudo apt update
。sudo apt install openjdk-11-jdk
。wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
。sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
。sudo apt update && sudo apt install jenkins
。sudo systemctl start jenkins
,sudo systemctl enable jenkins
。sudo cat /var/lib/jenkins/secrets/initialAdminPassword
命令获取,用于首次登录解锁。http://localhost:8080
,输入初始密码,安装推荐插件,创建管理员账户。http://your-server-ip:8080
。