Infra/Server
[Centos7] Jenkins Install
자라선
2020. 7. 28. 14:09
# repo 를 받기위한 유틸리티 설치
yum install wget -y
# repo 다운
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
# rpm key import
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# jenkins 설치
yum install jenkins -y
# 설정 변경시 아래 편집 수정 (jenkins 기본 포트는 8080)
vim /etc/sysconfig/jenkins
# 방화벽으로 8080포트가 막혀있다면 접속 불가능으로 방화벽 제거
systemctl stop firewalld
# 방화벽 비활성화
systemctl disable firewalld
# 젠킨스의 기본경로
cd /var/lib/jenkins