1 / 35

click_u@hotmail

click_u@hotmail.com. JDK 설치. 1. j2sdk-1_4_2_03-windows-i586-p.exe 을 실행한다 . 2. License 에 동의 하고 Next 를 눌러서 다음으로 넘어 간다. JDK 설치. 3. Install 할 폴더를 선택하고 Next 로 넘어간다 . ( 여기서는 기본 폴더 j2sdk1.4.2_03 을 선택 ). JDK 설치.

max
Download Presentation

click_u@hotmail

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. click_u@hotmail.com

  2. JDK 설치 1. j2sdk-1_4_2_03-windows-i586-p.exe을 실행한다. 2. License에 동의 하고 Next를 눌러서 다음으로 넘어 간다

  3. JDK 설치 3. Install 할 폴더를 선택하고 Next로 넘어간다. (여기서는 기본 폴더 j2sdk1.4.2_03을 선택)

  4. JDK 설치 4. Java Plug-In을 선택할 Brwoser(microsoft Internet Explorer)를 선택후에 Install을 누른다.

  5. JDK 설치 5. 설치되고 있는 과정

  6. JDK 설치 6. JDK 설치 종료

  7. JDK 설치 7. JDK가 설치된 폴더 (C:\j2sdk1.4.2_03)

  8. JDK 환경설정 1. 환경변수 설정 (시스템 등록정보 – 고급 – 환경변수) JAVA_HOME : JDK를 설치한 디렉토리 c:\j2sdk1.4.2_03 Path %JAVA_HOME%\bin classpath .

  9. Apache 설치 1. apache_2.0.48-win32-x86-no_ssl.ms을 실행한다.

  10. Apache 설치 2. License에 동의 하고 Next를 눌러서 다음으로 넘어 간다

  11. Apache 설치 3. Apache HTTP Server 관련 내용이므로 그냥 Next을 눌러서 넘어간다

  12. Apache 설치 4. Server의 정보를 입력하는 페이지 • 나중에 httpd.conf를 읽어서 수정 가능하므로 127.0.0.1(localhost)을 설정 값으로 입력한다. • 기본 포트 80을 이용하여 서비스 할 예정이니 for All Users, on Port 80, as a Service를 선택한다.

  13. Apache 설치 5. Setup Type을 설정하는 페이지로 그냥 Typical을 선택하고 Next로 넘어간다.

  14. Apache 설치 6. Destination Folder(설치할 폴더)를 선택하는 페이지롤 기본으로 두고 Next로 넘어간다.

  15. Apache 설치 7. Install을 눌러서 Program을 설치한다.

  16. Apache 설치 8. Installing 과정이며 인스톨을 종료한다.

  17. Tomcat 설치 1. jakarta-tomcat-5.0.18.exe 을 선택하여 프로그램을 설치한다. 2. Next를 눌러서 다음으로 넘어간다.

  18. Tomcat 설치 2. License에 동의 하고 I Agree 를 눌러서 다음으로 넘어 간다

  19. Tomcat 설치 3. 설치할 구성 요소를 선택한다. • 위에 Tree에 선택 되어 있는 리스트만 선택한다.. • Tomcat – Service를 선택하게 되면 윈도우 – 관리도구 – 서비스에 등록 되어 프로그램 출력 콘솔을 확인 불가능하게 되고 관리 측면에서 어려운 부분이 많이 있다.

  20. Tomcat 설치 4. 인스톨할 폴더를 선택하고 다음으로 넘어간다. (기본값)

  21. Tomcat 설치 5. Tomcat Server의 Administrator권한을 가진 계정을 입력하고, Tomcat의 기본 포트(8080)을 입력하고 넘어간다. • Administrator Login 의 User와 Password를 “admin/공백” 으로 입력하지만 차후 다른 계정과 암호를 입력하여야 한다.

  22. Tomcat 설치 6. Tomcat Engine이 구동시에 필요한 JVM의 위치를 설정한다. (기본값) • JDK의 설치가 선 이행 되어야 한다.

  23. Tomcat 설치 7. Tomcat Server 설치과정을 보여 주고, 설치 완료된 화면을 보여준다.

  24. Tomcat 환경설정 1. Tomcat Servlet API를 구동하기 위한 servlet-api.jar 파일을 CLASSPATH 또는 %JAVA_HOME%\jre\lib\ext에 추가한다.

  25. Tomcat 환경설정 2. 환경변수 설정 (시스템 등록정보 – 고급 – 환경변수) - CATALINA_HOME : Tomcat를 설치한 Directory C:\Program Files\Apache Software Foundation\Tomcat 5.0

  26. Tomcat 환경설정 3. Tomcat Context Path설정 • Context: 특정 가상호스트 내에서 실행되는 web application • path: 이 web application의 context path • docBase: web application에 대한 Document Base Directory 또는 이 디렉터리에 대한 절대경로명 • reloadable: Catalina는 /WEB-INF/classes/와 /WEB-INF/lib 안 클래스 들의 변경여부를 감시하다가, 변경이 발견되면 웹어플리케이션을 자동으로 재적재(reload)합니다 * 상세 내용은 첨부 파일 참고 Server Configuration

  27. JK2 Module 설치 1. mod_jk2.dll 을 C:\Program Files\Apache Group\Apache2\modules로 카피한다. 2. C:\Program Files\Apache Group\Apache2\conf 에 httpd.conf을 열어서 LoadModule 마지막 부분에 LoadModule jk2_module modules/mod_jk2.dll을 추가한다.

  28. worker2.properties 설정 1. workers2.properties %APACHE2_HOME%으로 카피하고 다음과 같이 입력을 한다. • [logger] • level=DEBUG • [config:] • file=${serverRoot}/conf/workers2.properties • debug=0 • debugEnv=0 • [uriMap:] • info=Maps the requests. Options: debug • debug=0 • [shm:] • info=Scoreboard. Required for reconfiguration and status with multiprocess servers • file=${serverRoot}/logs/jk2.shm • size=1048576 • debug=0 • disabled=0 • # Alternate file logger • [logger.file:0] • level=DEBUG • file=${serverRoot}/logs/jk2.log • [workerEnv:] • info=Global server options • timing=1 • debug=0 • # Default Native Logger (apache2 or win32 ) • # can be overriden to a file logger, useful • # when tracing win32 related issues • logger=logger.file:0

  29. worker2.properties 설정 • [vm:] • info=Parameters used to load a JVM in the server process • JVM=${JAVA_HOME}/jre/bin/hotspot/jvm.dll • classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar • classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar • OPT=-Dtomcat.home=${TOMCAT_HOME} • OPT=-Dcatalina.home=${TOMCAT_HOME} • OPT=-Xmx128M • #OPT=-Djava.compiler=NONE • disabled=1 • [lb:lb] • info=Default load balancer. • debug=0 • [ajp13:localhost:8009] • channel=channel.socket:localhost:8009 • [channel.socket:localhost:8009] • info=Ajp13 forwarding over socket • debug=0 • tomcatId=localhost:8009 • lb_factor=1 • group=lb

  30. worker2.properties 설정 • [status:] • info=Status worker, displays runtime informations • [uri:/jkstatus/*] • info=Display status information and checks the config file for changes. • group=status: • [uri:/manager/*] • group=lb • #worker=ajp13:localhost:8009 • [uri:/tomcat-docs/*] • group=lb • #worker=ajp13:localhost:8009 • [uri:/posco2cc/*] • group=lb • #worker=ajp13:localhost:8009 • [uri:/img/*] • group=lb • #worker=ajp13:localhost:8009 * 첨부파일 참고

  31. JK2.properties 설정 1. jk2.properties conf %CATALINA_HOME%로 카피하고 다음과 같이 입력을 한다. ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess

  32. 연동 Test 1. Apache Server Service를 시작한다.

  33. 연동 Test 2. Tomcat Server를 시작한다.

  34. 연동 Test 3. Web Browser를 실행하여 http://127.0.0.1/posco2cc와 http://127.0.0.1:8080/posco2cc를 실행시켜서 같은 결과가 나오는지 확인한다.

  35. 연동 Test 4. JK2 Status를 이용하여 연동되는 상태를 체크 가능하다. (http://127.0.0.1/jkstatus)

More Related