LoginSignup
2
2

More than 5 years have passed since last update.

CentOS 5.7 に Jenkins を Install

Posted at

jenkins を Install

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

上記の手順で

  • /usr/lib/jenkins/jenkins.war が作成される
  • 設定ファイル /etc/sysconfig/jenkins が作成される
  • Jenkins のリポジトリ情報 /etc/yum.repos.d/jenkins.repo が作成される
  • jenkins のリポジトリ情報 /etc/yum.repos.d/jenkins.repo.rpmnew が作成される

/etc/sysconfig/jenkins を編集する

PORT 番号の変更

% sudo vi /etc/sysconfig/jenkins

## Type:        integer(0:65535)
## Default:     8080    
## ServiceRestart: jenkins 
#
# Port Jenkins is listening on.
# Set to -1 to disable 
#
JENKINS_PORT="8080"

上記の JENKINS_PORT を任意の番号に変更する

それ以外の設定

/etc/sysconfig/jenkins を読めばわかる

Jenkins を起動する

% sudo service jenkins start

Jenkins にアクセスしてみる

http://localhost:8080 にアクセスする

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