728x90
먼저 mod_jk.log 파일을 살펴본다.
[21 12 01 01:21:08] [10:139659334096640] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) Failed opening socket to (127.0.0.1:8009) (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[21 12 01 01:21:08] [10:139659334096640] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) Failed opening socket to (127.0.0.1:8009) (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[21 12 01 01:21:08] [10:139659334096640] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[21 12 01 01:21:08] [10:139659334096640] [error] ajp_service::jk_ajp_common.c (2795): (worker1) connecting to tomcat failed (rc=-3, errors=19, client_errors=0).
[21 12 01 01:21:08] [10:139659334096640] [info] jk_handler::mod_jk.c (2991): Service error=-3 for worker=worker1
WAS와 연결이 되지 않는 상태이다.
apache의 httpd.conf 파일과 workers.properties를 다시 한번 살펴본다.
1. httpd.conf
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
JKWorkersFile conf/workers.properties
JKLogFile logs/mod_jk.log
JKLogLevel info
JKLogStampFormat "[%y %m %d %H:%M:%S] "
JKShmFile logs/mod_jk.shm
JKMount /fromdb worker1
</IfModule>
- JKWorkersFile의 위치가 제대로 설정되었는지
- JKMount가 원하는 경로로 설정되었는지
2. workers.properties
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=host.docker.internal
worker.worker1.type=ajp13
- 통신 port 번호
- WAS의 통신 port 번호와 같은지
- 이미 사용 중인 포트번호는 아닌지
- host
- WAS의 host 주소로 제대로 설정되었는지
- WAS와 다른 서버라면 제대로 확인해줘야한다.
- 통신 프로토콜
- WAS에서 프로토콜이 AJP/13으로 올바르게 설정되었는지
728x90