Wildfly8.2 서비스가 우분투 서버에서 올바르게 시작되지 않습니다.

Wildfly8.2 서비스가 우분투 서버에서 올바르게 시작되지 않습니다.

우분투 서버 14.04.2 LTS에서 wildfly를 실행 중입니다. 서비스를 시작하려고 하면 다음과 같은 결과가 나타납니다.

service wildfly start
* Starting WildFly Application Server wildfly
   ...done.
* WildFly Application Server hasn't started within the timeout allowed
* please review file "/var/log/wildfly/console.log" to see the status of the service

스크립트가 로그 파일을 수집하고 있습니다.

grep 'JBAS015874:' "$JBOSS_CONSOLE_LOG" > /dev/null

"JBAS015874:" 문자열은 기록되지 않습니다. 서버가 기록하는 마지막 줄은 다음과 같습니다.

INFO [ra] HornetQ resource adaptor started [org.hornetq.ra] (MSC service thread 1-1)

그러나 lynx를 localhost:8080으로 지정하면 wildfly 환영 페이지가 표시됩니다.

이 문제를 어떻게 해결할 수 있는지 제안해 주시겠습니까?

답변1

글쎄요, 제가 바보가 된 것 같아요.

문제는 로깅이었습니다. 얼마 전에는 시작 시 로깅을 줄였습니다.

다음 로그 구성을 추가해야 합니다.

<logger category="org.jboss.as">
    <level name="INFO"/>
</logger>

이제 시작 시 문자열 JBAS015874:이 기록되고 서비스 스크립트가 불평하지 않습니다.

여담으로, 서비스가 wildfly가 시작되었는지 여부를 확인하는 더 좋은 방법이 있어야 한다고 생각합니다.

관련 정보