0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Amazon linux上のJenkinsインストール

Last updated at Posted at 2021-11-15

事前準備

1台のEC2インスタンスを用意しておく。
Screen Shot 2021-11-15 at 18.35.45.png

security groupを設定しておく。
Screen Shot 2021-11-15 at 18.31.24.png

#1. jenkinsをインストールする

sudo yum update
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
sudo yum upgrade
sudo amazon-linux-extras install epel-release
sudo amazon-linux-extras install java-openjdk11
java
sudo yum install java-11-openjdk-devel
javac
sudo yum install jenkins
sudo systemctl daemon-reload
sudo systemctl start jenkins
sudo systemctl status jenkins

参照:
https://www.jenkins.io/doc/book/installing/linux/#red-hat-centos

#2. jenkins web uiにログインする
Administratorの初期パスワードを取得しておく。

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

#http://xx.xx.xx.xx:8080にアクセスする
Screen Shot 2021-11-15 at 9.30.47.png

Screen Shot 2021-11-15 at 9.31.19.png

Screen Shot 2021-11-15 at 9.32.13.png

Screen Shot 2021-11-15 at 9.34.51.png

Screen Shot 2021-11-15 at 9.37.37.png

Screen Shot 2021-11-15 at 9.37.49.png

Screen Shot 2021-11-15 at 9.38.14.png

Screen Shot 2021-11-15 at 9.38.31.png

Screen Shot 2021-11-15 at 9.39.37.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?