Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

젠킨스는 Java 로 만들어진 web application 이므로 구동하려면 Java servlet container 가 필요하며 war 패키지는 기본적으로 jetty 를 제공합니다.

필요 조건

  • JDK 8 이상
  • Jenkins 2 now requires Servlet 3.1 to run. If you're not using the embedded Winstone-Jetty, make sure your container supports Servlet 3.1 (e.g. Tomcat 8) before upgrading.
  • Jenkins 2 no longer supports AJP with the embedded Winstone-Jetty container, so if you're using Jenkins with a reverse proxy, please make sure it uses HTTP before upgrading.


  1. .war 옆의 화살표를 클릭하면 OS별 패키지를 다운 가능
  2. 패키지보다는 직접 톰캣을 설치하고 war로 설치하는 것을 추천


톰캣 8 설치

  • https://tomcat.apache.org/download-80.cgi 다운로드
  • 압축 해제
  • conf/server.xml 수정. ServerPort, 

    <Server port="11005" shutdown="SHUTDOWN">
    
      <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
    
      <!-- Security listener. Documentation at /docs/config/listeners.html
    
      <Listener className="org.apache.catalina.security.SecurityListener" />
    <Connector port="11080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="11443" />
  • AJP Port 주석 처리

    <!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->

    Reverse Proxy 를 사용할 경우 다음 내용 추가

    proxyName="jira.lesstif.com" 
    proxyPort="443"
    
                       scheme="https" secure="true"
  • selinxu

    semanage port -a -p tcp -t http_port_t 10080

install

  • export JENKINS_HOME env var
  • download war
  • copy war to webapps/ROOT
  • start topcat
  • init password
     
  • plugin install
     
  • jenkins_home/secrets/initialAdminPassword  에 초기 암호 있음.


Ref

  • No labels