All posts

IT/System

먼저, Tomcat 설치 경로에 lib 경로에 들어 가서,

> cd %catalina_home%\lib

버전을 확인한다.

> java -cp catalina.jar org.apache.catalina.util.ServerInfo
      Server version: Apache Tomcat/7.0.82
      Server built:   Sep 29 2017 12:23:15 UTC
      Server number:  7.0.82.0
      OS Name:        Windows Server 2008 R2
      OS Version:     6.1
      Architecture:   amd64
      JVM Version:    1.7.0_21-b11
      JVM Vendor:     Oracle Corporation

 

 

내용:

No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status

 

SELinux에 차단되어 발생한 오류로, SELinux를 비활성화 하거나 보안 context 변경.

아래는 보안 contex를 변경하여 해결.

[Thu Nov 05 14:05:45.411188 2020] [jk:warn] [pid 16594:tid 139963507755328] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status

 

해결방안:

# chcon -u system_u -r object_r -t httpd_modules_t /etc/httpd/modules/mod_jk.so

 

내용:

gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory

 

tomcat-connector make 시, rpm-config 데몬도 필요.

gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
make[1]: *** [../scripts/build/rules.mk:36: jk_ajp12_worker.lo] Error 1
make[1]: Leaving directory '/home/srv/sobis2/tomcat-connectors-1.2.48-src/native/common'
make: *** [Makefile:470: all-recursive] Error 1

 

해결방안:

# yum install redhat-rpm-config -y

 

내용:

/usr/lib64/apr-1/build/libtool: line 1752: gcc: command not found

 

gcc가 설치되어있지 않아 발생.

/usr/lib64/apr-1/build/libtool: line 1752: gcc: command not found
make[1]: *** [../scripts/build/rules.mk:36: jk_ajp12_worker.lo] Error 1
make[1]: Leaving directory '/home/Service/tomcat-connectors-1.2.48-src/native/common'
make: *** [Makefile:470: all-recursive] Error 1

 

 

해결방안:

# yum install gcc -y

 

내용:

configure: error: Invalid location for apxs: '/usr/bin/apxs'

 

tomcat-connector 구성 시, httpd-devel가 설치되지 않아 발생한 오류.

 

해결 방안:

# yum install httpd-devel -y