facebook twitter hatena line email

「Jenkins/linuxインストール」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「==jenkinsとは== cronの高性能guiツール ==リポジトリ登録== # wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo # rpm --...」)
 
(jenkins.localhostで表示する)
行37: 行37:
 
#apache再起動
 
#apache再起動
 
#クライアント側のhostsに以下記載(xxxはサーバIP
 
#クライアント側のhostsに以下記載(xxxはサーバIP
  xxx.xxx.xxx.xxx jenkins.localhost
+
  ***.***.***.*** jenkins.localhost
  
 
==参考==
 
==参考==
 
http://jiska.hatenablog.jp/entry/2011/11/15/001049
 
http://jiska.hatenablog.jp/entry/2011/11/15/001049

2020年9月14日 (月) 16:19時点における版

jenkinsとは

cronの高性能guiツール

リポジトリ登録

# wget -O /etc/yum.repos.d/jenkins.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設定ファイル

# vi /etc/sysconfig/jenkins

jenkinsデフォルトホーム

$ cd /var/lib/jenkins

jenkins起動

/etc/rc.d/init.d/jenkins start

自動起動

/sbin/chkconfig jenkins on
/sbin/chkconfig --list jenkins

http表示

http://localhost:8080

503だったときは起動から1分程度待ってみる

jenkins.localhostで表示する

  1. vi /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
  ServerName jenkins.localhost
  <Location />
    ProxyPass http://localhost:8080/
    ProxyPassReverse  http://localhost:8080/
  </Location>
</VirtualHost>
  1. apache再起動
  2. クライアント側のhostsに以下記載(xxxはサーバIP
***.***.***.*** jenkins.localhost

参考

http://jiska.hatenablog.jp/entry/2011/11/15/001049