代码和资料:
第一步:看防火墙和s是否关闭
第二步:
阿里yum源
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
验证:
cat /etc/yum.repos.d/CentOS-Base.repo|less
第三步:yum install lrzsz vim -y
第四步:下载jekins
第五步: yum install nginx -y
第六步:vim /usr/lib/systemd/system/nginx.service
第七步:配置nginx
vim /etc/nginx/nginx.conf
server {
listen 80 default_server;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
location /download/plugins
{
proxy_set_header Host mirrors.tuna.tsinghua.edu.cn;
rewrite ^/download/plugins/(.*)$ /jenkins/plugins/$1 break;
proxy_pass https://mirrors.tuna.tsinghua.edu.cn;
}
error_page 404 /404.html;
location = /404.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
第八步:启动nginx
systemctl start nginx
第九步:在/etc/hosts添加
vim /etc/hosts
127.0.0.1 updates.jenkins-ci.org
第十步:下载插件
---01---
我的jekisn安装在哪里:
192.168.244.143
我们主要采用yum安装:
jekins的yum安装:https://blog.csdn.net/l05199179/article/details/78981703
jekins的war包下载:https://blog.csdn.net/mr_hui_/article/details/104338868
jekins版本:
其他的启动都失败了,我用war启动:
第一步:java -jar jenkins.war --httpPort=8082
11358241dd954a79a0c5c1ed95e55f58
第二步:http://192.168.244.143:8082/login?from=%2F
一直进不去:https://zhuanlan.zhihu.com/p/122907442
vi /root/.jenkins/hudson.model.UpdateCenter.xml
插件安装:https://blog.csdn.net/weixin_44666068/article/details/103380491
https://blog.csdn.net/mp624183768/article/details/109679760
插件下载失败:https://www.pianshen.com/article/35521817939/
---02---