LoginSignup
2
2

More than 5 years have passed since last update.

Jenkins install

Posted at

環境

OS : linux

Jenkinsインストール

$ sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
$ sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
$ yum install jenkins

Jenkins 起動

$ sudo service jenkins start/stop/restart

自動起動設定

$ sudo chkconfig jenkins on

起動ポートを変更(例:8081)

$ /etc/sysconfig/jenkins
JENKINS_PORT="8081"

ファイアーウォール設定

$ vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT

ファイアーウォール設定反映

$ service iptables restart

アクセス確認

http://{IP_ADDRESS}:8081/

ログ
/var/log/jenkins/jenkins.log

起動スクリプト
/etc/init.d/jenkins

参考リンク

Jenkins本家

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