https://www.jenkins.io/doc/tutorials/tutorial-for-installing-jenkins-on-AWS/
저 사이트에서 하라는 데로 하니까 설치 된다
Downloading and installing Jenkins 항목을 참고해서 작성하였다.
Ensure that your software packages are up to date on your instance by using the following command to perform a quick software update:
sudo yum update –y
Add the Jenkins repo using the following command:
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
Import a key file from Jenkins-CI to enable installation from the package:
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
sudo yum upgrade
Install Java (Amazon Linux 2023):
sudo dnf install java-11-amazon-corretto -y
Install Jenkins:
sudo yum install jenkins -y
Enable the Jenkins service to start at boot:
sudo systemctl enable jenkins
Start Jenkins as a service:
sudo systemctl start jenkins
웹브라우저열고
http://<EC2인스턴스의 IP>:8080/
EC2 보안그룹 에서 인바운드. 8080 포트 추가함
패스워드 확인하기
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
추천하는 설치, 입맛게 맞게 설치 두가지 버튼 나오는데 그냥
추천하는 설치 버튼 눌러서 진행함