结合最近的项目需求,先使用jenkens 搭建CI/CID 环境
centos 安装Jenkins
centos 7
jdk8
命令
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
检查你要用的端口 是否被使用
lsof -i:8080
vim /etc/sysconfig/jenkins 修改用户,端口
访问
ip:端口
http://116.196.122.25:7080/
密码
cat /var/lib/jenkins/secrets/initialAdminPassword