一,安裝完並完成管理員配置後php
1.進入jenkins系統管理
2.進入插件管理(Manage Plugins)——高級——升級站點html
二,在jenkins服務器上下載安裝nginx,作個虛擬主機的轉發nginx
$ grep jenkins /etc/hosts
### jenkins ###
127.0.0.1 mirrors.jenkins-ci.orgweb
nginx安裝目錄的conf.d/mirrors.jenkins-ci.org.conf服務器
root@tangtang:/etc/nginx/conf.d#cat mirrors.jenkins-ci.org.confapp
server
{
listen 80;
server_name mirrors.jenkins-ci.org;ide
location / {
proxy_redirect off;
proxy_pass https://mirrors.tuna.tsinghua.edu.cn/jenkins/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
#proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.49 Safari/537.36";
proxy_set_header Accept-Language "zh-CN";
}
index index.html index.htm index.php;spa
#error_page 404 /404.html;插件
location ~ /\.
{
deny all;
}orm
access_log /data/weblog/xx.access.log;
error_log /data/weblog/xx.error.log;
}
root@tangtang:/etc/nginx/conf.d# mkdir /data/weblog