1、官网:
https://jenkins.io/
官网的说明一定是最正确、最完整的,
2、更新yum源并下载jenkins:
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
3、Jenkins 文件配置
vim /etc/sysconfig/jenkins
4、nginx文件配置
server {
listen 80;
server_name
location / {
proxy_pass http://127.0.0.1:8080;
root /var/lib/jenkins/;
}
}
5、nginx重载
nginx -s reload
启动jenkins
service jenkins start
6、配置hosts,浏览器访问
jenkins.png