在 CentOS 7 里安装 Jenkins

yum update -y
yum install java-1.8.0-openjdk-devel -y
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
service jenkins start
chkconfig jenkins on

    server {
        listen       443 ssl http2 default_server;
        server_name  _;
        root         /usr/share/nginx/html;
#
        ssl_certificate "/root/.acme.sh/szt.anqun.org/fullchain.cer";
        ssl_certificate_key "/root/.acme.sh/szt.anqun.org/szt.anqun.org.key";
        ssl_session_cache shared:SSL:1m;
        ssl_session_timeout  10m;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;
#
#        # Load configuration files for the default server block.
#        include /etc/nginx/default.d/*.conf;
#
        location / {
                resolver 8.8.8.8 ipv6=off;
                proxy_pass         http://127.0.0.1:8080; # live webiste on IPV4
                proxy_redirect     off;
                proxy_set_header   Host             $host;
                proxy_set_header   X-Real-IP        $remote_addr;
                proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }
    }

https://pkg.jenkins.io/redhat-stable/
https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions

标签: none

添加新评论