LoginSignup
1
1

More than 5 years have passed since last update.

Jenkins導入(CentOS7)

Posted at

CIについての勉強の一環としてJenkinsの勉強。
構築時のメモ。

環境

・VirtualBox
・CentOS7.6(1810) minimal

前提条件

・firewallが無効になっていること
・rootでログインしていること

構築

OpenJDKのインストール

# yum -y install java-1.7.0-openjdk.x86_64

公開鍵のインポート

# wget -O /etc/yum.repos.d/junkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
# rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

Jenkinsのインストール

# yum -y install jenkins

Jenkinsの起動・自動起動設定

# systemctl start jenkins
# systemctl enable jenkins

動作確認

http://[サーバIPアドレス]:8080/にアクセスしてページが表示されることを確認する。

スクリーンショット 2019-02-11 17.33.15.png

ログインユーザは adminで初期パスワードは以下で確認する。

# cat /var/lib/jenkins/secrets/initialAdminPassword
05545b6ab9b14f9aadbe879f4f572e6b

以上

1
1
1

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
1
1