장난감
Apache(httpd)와 Jenkins 설치
umaking
2014. 3. 8. 23:47
standalone의 경우 별도의 포트로 설치가 되는데 Default port가 8080이더군.
그래서 port를 6000으로 바꿔 봤는데, 웹브라우져에서 unsafe_port로 제약으로 사용상 문제가 발생하겠더군,...
여기서 부터는 jenkins를 설치하려고 하는 중의 내용을 적어봤다.
참고로 openstack이 이미 설치된 시스템에서의 추가인 것이다.
1. Jenkins를 설치하고
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
2. 포트 및 설정 변경
#vi /etc/default/jenkins
아래 정보를 수정 및 추가한다.
HTTP_PORT=6000
JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --prefix=$PREFIX"
3. Apache 모듈 설치
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache
a2enmod proxy
a2enmod proxy_http
4. Proxy설정을 추가
#vi /etc/apache2/mods-available/proxy.conf
ProxyPass /jenkins http://localhost:6000/jenkins nocanon
ProxyPassReverse /jenkins http://localhost:6000/jenkins ProxyRequests Off AllowEncodedSlashes NoDecode # Local reverse proxy authorization override # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu) <Proxy http://localhost:6000/jenkins*> Order deny,allow Allow from all </Proxy>
끝났네, 잘된다.