OS/CentOS72019. 1. 10. 18:40

모듈 다운로드

curl -O http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz

 

[root@nhisct src]# tar -xvf tomcat-connectors-1.2.42-src.tar.gz

[root@nhisct src]# cd tomcat-connectors-1.2.42-src/

[root@nhisct tomcat-connectors-1.2.42-src]# cd native/

[root@nhisct native]# ls

BUILDING.txt  README.txt  aclocal.m4  buildconf.sh  configure.ac  netscape

Makefile.am   STATUS.txt  apache-1.3  common        docs          scripts

Makefile.in   TODO.txt    apache-2.0  configure     iis

[root@nhisct native]#

[root@nhisct native]# ./buildconf.sh

buildconf: checking installation...

buildconf: autoconf not found.

           You need autoconf version 2.59 or newer installed

           to build mod_jk from SVN.

[root@nhisct native]# ./configure --with-apxs=/usr/bin/apxs

/usr/bin/apxs 없는경우 ( /usr/sbin/apxs 이거나 httpd-devel 설치 안된경우일수 있음)

httpd

httpd-tools

httpd-devel

[root@nhisct native]# make

[root@nhisct native]# make install

[root@nhisct native]# cd /etc/httpd/conf.modules.d/

[root@nhisct conf.modules.d]# vi 00-jk.conf

LoadModule jk_module modules/mod_jk.so

[root@nhisct httpd]# cd /etc/httpd/conf.d/

[root@nhisct conf.d]# vi httpd-jk.conf

<IfModule jk_module>

    # We need a workers file exactly once

    # and in the global server

    JkWorkersFile conf.d/workers.properties

    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

    # Our JK error log

    # You can (and should) use rotatelogs here

    JkLogFile logs/mod_jk.log

    # Our JK log level (trace,debug,info,warn,error)

    JkLogLevel info

    # Our JK shared memory file

    JkShmFile logs/mod_jk.shm

    # If you want to put all mounts into an external file

    # that gets reloaded automatically after changes

    # (with a default latency of 1 minute),

    # you can define the name of the file here.

    JkMountFile conf.d/uriworkermap.properties

</IfModule>

[root@nhisct conf.d]# vi workers.properties

worker.list=tomcat1,tomcat2

worker.tomcat1.port=8080

worker.tomcat1.host=localhost

worker.tomcat1.type=ajp13

#worker.tomcat1.lbfactor=1

#worker.tomcat2.port=8081

#worker.tomcat2.host=localhost

#worker.tomcat3.type=ajp13

#workes.tomcat3.lbfactor=1

[root@nhisct conf.d]# vi uriworkermap.properties

/*=tomcat1

#/*.jsp=tomcat2

#/*.png=tomcat3

#/*.css=tomcat4



'OS > CentOS7' 카테고리의 다른 글

CentOS7 + Mysql  (0) 2017.06.23
CentOS7 Vnc 설정관련  (0) 2017.06.22
CentOS7 Locale설정  (0) 2017.06.22
Posted by idwook
WEB/JSP2019. 1. 2. 13:42

ex) http://localhost/test/test.jsp


request.getContextPath()   return /test

request.getRequestURI()  return /test/test.jsp

request.getRequestURL() return http://localhost/test/test.jsp

request.ServletPath()  return /test.jsp

request.getRealPath("")  return null or c:/www/webapps/test


host = url.replace(uri,"").replace(contextPath,"");    return http://localhost

remoteAddr = request.getRemoteAddr();            remoteAddr(ex. 0.0.0.0)

'WEB > JSP' 카테고리의 다른 글

[JSP] Comet 사용법  (0) 2014.02.10
[JSP] JDBC 커넥션풀 설정/사용 방법  (0) 2014.02.07
Posted by idwook
Tool/Eclipse2018. 12. 28. 09:41
버전명 플랫폼 버전 연도
Austin 3 2004
Bravo 3.1 2005
Callisto 3.2 2006
Europa 3.3 2007
Ganymede 3.4 2008
Galileo 3.5 2009
Helios 3.6 2010
Indigo 3.7 2011
Juno 3.8과 4.2 2012
Kepler 4.3 2013
Luna 4.4 2014
Mars 4.5 2015
Neon 4.6 2016
Oxygen 4.7 2017
Photon 4.8 2018


'Tool > Eclipse' 카테고리의 다른 글

Eclipse 기본 스타일 세팅  (2) 2015.12.10
Posted by idwook