Skip to content

조회 수 11406 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1) sudo apt-get install apache2 tomcat6 libapache2-mod-jk
2) sudo vim /etc/apache2/workers.properties
내용추가:
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

3) sudo vim /etc/apache2/apache2.conf
맨 아래줄 내용추가: 
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
# Declare the module for (remove this line on Apache 2.x)
#AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /etc/apache2/workers.properties
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile /var/log/apache2/mod_jk.shm
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "


6) sudo vim /etc/apache2/sites-enabled/000-default
주석처리 "DocumentRoot /var/www" 
바로 아래줄에 두줄 추가 
JkMount / worker1
JkMount /* worker1

7) 톰캣의 8009번포트 활성화
sudo vim /etc/tomcat6/server.xml
아래 라인의 주석된것을 삭제
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

8) 톰캣재시작
sudo /etc/init.d/tomcat6 restart

9) 아파치재시작
sudo /etc/init.d/apache2 restart

10) 웹에서 접속
80포트로 접속했을시에 톰캣페이지가 나오면 성공


  1. CentOS 5.X 에 MRTG설치 할때 한글 문제

    Date2014.06.06 ByADMINPLAY Views6887
    Read More
  2. [Apache] 2.4 버전에서 403 에러시 [authz_core:error AH0...

    Date2015.01.09 ByADMINPLAY Views7291
    Read More
  3. SetEnvIf 지시어 설명 (mod_setenvif)

    Date2014.01.18 ByADMINPLAY Views7391
    Read More
  4. tomcat 에서 OutOfMemory에러가 발생할때

    Date2013.09.09 ByADMINPLAY Views8773
    Read More
  5. APM설치 후 80포트가 연결이 안되요....ㅜㅜ

    Date2013.02.14 Bykimbongsoo Views9808
    Read More
  6. apache 설치시 에러 발생 collect2: ld returned 1 exit s...

    Date2013.03.12 ByADMINPLAY Views9814
    Read More
  7. WAS 란? WAS 뭐에요?

    Date2014.01.19 ByADMINPLAY Views10969
    Read More
  8. 우분투9.10 - Tomcat6 와 Apache2연동

    Date2012.10.31 ByADMINPLAY Views11406
    Read More
  9. Apache expires 설정으로 브라우저 캐시

    Date2013.03.18 Byl2zeo Views11897
    Read More
  10. 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)...

    Date2013.01.27 Byl2zeo Views12149
    Read More
  11. Apache 1.3.12 httpd.conf 파일 한글설명

    Date2009.03.04 ByADMINPLAY Views13363
    Read More
  12. apache log 정리

    Date2008.12.14 ByADMINPLAY Views13530
    Read More
  13. [자료] 웹사이트 성능개선 위한 커널 튜닝 사례

    Date2009.05.10 ByADMINPLAY Views13769
    Read More
  14. Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플...

    Date2009.06.21 ByADMINPLAY Views13817
    Read More
  15. 사용자 인증

    Date2009.11.26 ByADMINPLAY Views14019
    Read More
  16. CGI 오류: Premature end of script headers (Internal Se...

    Date2008.12.14 ByADMINPLAY Views14129
    Read More
  17. SSL 인증서 발급 후 SSL mode 시작시 두 개의 패스워드 입...

    Date2009.10.15 ByADMINPLAY Views14178
    Read More
  18. httpd.conf 파일에 대한 설명 / 번역

    Date2008.10.08 ByADMINPLAY Views14198
    Read More
  19. apache 에서 euc-kr홈페이지를 포팅할때 화면이안나올경우

    Date2009.07.18 ByADMINPLAY Views14219
    Read More
  20. rewrite 모듈을 이욜한 서브도메인으로 홈페이지 운영하기

    Date2009.11.26 ByADMINPLAY Views14219
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234