DEV Community

sunj
sunj

Posted on

ERROR: JkWorkersFile only allowed once, 2022-06-04

  1. apache2 실행시

JkWorkersFile only allowed once
오류 발생

× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-06-04 11:16:41 UTC; 18s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 20059 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 35ms

Jun 04 11:16:40 test systemd[1]: Starting The Apache HTTP Server...
Jun 04 11:16:41 test apachectl[20062]: AH00526: Syntax error on line 23 of /etc/apache2/mods-enabled/jk.conf:
Jun 04 11:16:41 test apachectl[20062]: JkWorkersFile only allowed once
Jun 04 11:16:41 test apachectl[20059]: Action 'start' failed.
Jun 04 11:16:41 test apachectl[20059]: The Apache error log may have more information.
Jun 04 11:16:41 test systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jun 04 11:16:41 test systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 04 11:16:41 test systemd[1]: Failed to start The Apache HTTP Server.
Enter fullscreen mode Exit fullscreen mode
  1. 해결방안
vi /etc/apache2/mods-enabled/jk.conf

# /etc/apache2/mods-enabled/jk.conf 에서 주석처리
# JkWorkersFile /etc/libapache2-mod-jk/workers.properties
Enter fullscreen mode Exit fullscreen mode

참조 : 재미나게 사는법?: apache tomcat 연동 (mod_jk) (madpro84.blogspot.com)

Top comments (0)