LoginSignup
1
0

More than 5 years have passed since last update.

OracleLinuxにJenkinsをインストールする

Last updated at Posted at 2017-08-20

OpenJDKをインストールする

# yum install java-1.8.0-openjdk

Javaのバージョン確認

# java -version

公開鍵をインポートする

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

yumでインストール

# yum install jenkins

jenkinsを起動する

# service jenkins start

ポートの変更

# vi /etc/sysconfig/jenkins
-----
JENKINS_PORT="8082"
-----

jenkins の状態を確認

# service jenkins status
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: active (exited) since Mon 2017-08-21 06:12:52 JST; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 13748 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, 
status=0/SUCCESS)
1
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
1
0