100
2019-06-12 15:58:53 작성 2019-06-12 16:02:00 수정됨
1
165

mod jk 설정중 자꾸 오류나는데 도와주세요 ㅜ


안녕하세요 이제 7개월된 신입입니다


지금 윈도우 서버에 아파치랑 톰켓을 설치하고 jk mod 설정을 하고있는데 자꾸 오류가 나네요 ㅜㅜ


jk mod 연결 안한상태에서는 잘 켜지는데


jk mod 설정하고 돌리면 연동이 안됩니다..


로그를 보면


[Wed Jun 12 15:46:15 2019] [1612:6848] [error] jk_open_socket::jk_connect.c (638): socket() failed (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1065): (worker1) Failed opening socket to (UnresolvedIP:0) (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [error] ajp_send_request::jk_ajp_common.c (1725): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [info] ajp_service::jk_ajp_common.c (2775): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Wed Jun 12 15:46:15 2019] [1612:6848] [error] jk_open_socket::jk_connect.c (638): socket() failed (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1065): (worker1) Failed opening socket to (UnresolvedIP:0) (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [error] ajp_send_request::jk_ajp_common.c (1725): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=22)
[Wed Jun 12 15:46:15 2019] [1612:6848] [info] ajp_service::jk_ajp_common.c (2775): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Wed Jun 12 15:46:15 2019] [1612:6848] [error] ajp_service::jk_ajp_common.c (2796): (worker1) connecting to tomcat failed (rc=-3, errors=2, client_errors=0).
[Wed Jun 12 15:46:15 2019] [1612:6848] [info] jk_handler::mod_jk.c (2991): Service error=-3 for worker=worker1
[Wed Jun 12 15:46:15 2019] worker1 localhost 0.100006


이렇게 뜨는데 원인이 뭔지 ㅜㅜ



LoadModule jk_module modules/mod_jk.so
Include conf/mod_jk.conf

httpd엔 이것만 추가하였고



JkWorkersFile "C:/httpd-2.4.39-win64-VC15/Apache24/conf/workers.properties"
JkLogFile "C:/apache-tomcat-8.0.53-windows-x64/apache-tomcat-8.0.53/logs/mod_jk.log"
JkLogLevel error
JkAutoAlias "C:/apache-tomcat-8.0.53-windows-x64/apache-tomcat-8.0.53/webapps"
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %V %T"
JkMount /* worker1
<Directory "C:/apache-tomcat-8.0.53-windows-x64/apache-tomcat-8.0.53/webapps">
	Options Indexes FollowSymLinks
	allow from all
</Directory>

mod_jk.conf 파일이고



workers.tomcat_home="C:/apache-tomcat-8.0.53-windows-x64/apache-tomcat-8.0.53"
workers.java_home="C:/Program Files/Java/jdk1.8.0_191"
ps=/

worker.list=worker1

worker.worker1.type=ajp13
worker.worker1.host=loaclhost
worker.worker1.port=8009

workers.properties 파일입니다.

0
0
  • 답변 1

  • zepinos
    18k
    2019-06-12 16:08:34

    tomcat 의 <Connector> 중 mod_jk 을 위한 Connector 설정을 활성화 하셨나요? 오류 로그에 나오지만 정해진 포트로 연결하는 것을 실패했다고 합니다.

    0
  • 로그인을 하시면 답변을 등록할 수 있습니다.