centos jenkins 설치

북마크 추가

CentOS7 기준입니다.



  sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
  sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
  

If you've previously imported the key from Jenkins, the rpm --import will fail because you already have a key. Please ignore that and move on.

  yum install jenkins


포트설정

# vi /etc/sysconfig/jenkins

기본포트 8080

변경을 원하는 경우

JENKINS_PORT="8080" 부분을 다른 포트로 수정하시면 됩니다.


서비스 등록 및 실행

# systemctl enable jenkins
# systemctl start jenkins

서비스 실행 후 

서버 도메인 또는 ip : 포트로 시행하면 아래와 같은 화면이 나타납니다.


Unlock Jenkins

To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server:

/var/lib/jenkins/secrets/initialAdminPassword


위 경로에 가면  문자열이 있는데 복사해서 해제합니다.

AD
관리자
2021-01-09 18:24
SHARE