FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway

When running Nginx as a reverse proxy to Jenkins on CentOS, a 502 error may occur. Nginx error log will be as follows: 2020/05/07 13:32:33 [crit] 9665#9665: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 1.2.3.4, server: jenkins.artem.services, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "jenkins.artem.services"   Solution: Reason SELinux. … Continue reading "FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway"

CentOS 7 – Jenkins install

Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let’s install it.   To add the Jenkins repository, you will need the "wget" utility, if it is not installed, then install:   Add the repository and import its key:   Install Jenkins:   … Continue reading "CentOS 7 – Jenkins install"