官网安装命令:
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
yum install wget
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
systemctl start jenkins
systemctl enable jenkins
jenkins的安装目录在:/var/lib/jenkins
修改jenkins端口
vi /etc/sysconfig/jenkins
JENKINS_PORT=”8080″改成JENKINS_PORT=”8090″
systemctl start jenkins
systemctl enable jenkins
初始化安装默认插件
安装locale插件