참조 : http://www.pmguda.com/729
http://apache.tt.co.kr/tomcat/tomcat-7/
http://apache.tt.co.kr/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29-deployer.tar.gz
톰켓 설치 톰
hsc@ubuntu:/usr/local/src$ sudo wget http://apache.tt.co.kr/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29.tar.gz
–2012-08-14 23:49:26– http://apache.tt.co.kr/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29.tar.gz
Resolving apache.tt.co.kr (apache.tt.co.kr)… 121.125.79.185
Connecting to apache.tt.co.kr (apache.tt.co.kr)|121.125.79.185|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7679160 (7.3M) [application/x-gzip]
Saving to: apache-tomcat-7.0.29.tar.gz'
100%[======================================>] 7,679,160 449K/s in 18s
2012-08-14 23:49:44 (428 KB/s) - apache-tomcat-7.0.29.tar.gz’ saved [7679160/7679160]
hsc@ubuntu:/usr/local/src$ sudo tar xvzf apache-tomcat-7.0.29.tar.gz
apache-tomcat-7.0.29 apache-tomcat-7.0.29.tar.gz
hsc@ubuntu:/usr/local/src$ sudo mv apache-tomcat-7.0.29 /usr/local/tomcat
hsc@ubuntu:/usr/local/src$ cd /usr/local
hsc@ubuntu:/usr/local$ ls
bin etc games include lib man sbin share src tomcat
hsc@ubuntu:/usr/local$ sudo nano /etc/profile
export CATALINA_HOME=/usr/local/tomcat
export PATH=$PATH:$CATALINA_HOME/bin
http://apache.tt.co.kr/tomcat/tomcat-connectors/jk
http://apache.tt.co.kr/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz
sudo tar xvzf tomcat-connectors-1.2.37-src.tar.gz
tomcat-connectors-1.2.37-src/
sudo ./configure –with-apxs=/usr/local/apache2/bin/apxs
need to check for Perl first, apxs depends on it
libapr.so 혹은 이와 비슷한 명칭의 *.so 파일을 찾지 못해서
에러가 난 것입니다.
아파치 컴파일시
–enable-rule=SHARED_CORE –enable-module=so –enable-so
옵션을 주셔서 *.so 파일이 생성되도록 하셔야합니다..
note
Apache + Tomcat with Tomcat Connector
POSTED AT 2009/11/11 09:01 | POSTED IN SERVER/UBUNTU
http://www.jopenbusiness.com/tc/oss/162
jdk 1.6
테스트
javac 1.6.0_15# java -version
java version “1.6.0_15”
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)
apache2 – http://antop.tistory.com/37
tomcat6
환경 설정 ->자동 세팅됨(12.04)
<Connector port=”8080″ protocol=”HTTP/1.1″ URIEncoding=”UTF-8″
connectionTimeout=”20000″
redirectPort=”8443″ /><!– 주석을 제가하고 URIEncoding=”UTF-8″ enableLookups=”false” 추가 –>
<!– Define an AJP 1.3 Connector on port 8009 –>
<Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ URIEncoding=”UTF-8″ enableLookups=”false” />
JAVA_OPTS=”$JAVA_OPTS -Djava.endorsed.dirs=$CATALINA_HOME/endorsed -Dcatalina.base=$CATALINA_BASE -Dcatalina.home=$CATALINA_HOME -Djava.io.tmpdir=$JVM_TMP -Dfile.encoding=8859_1 -Dfile.client.encoding=8859_1 -Dclient.encoding.override=8859_1”
tomcat6 재시작
테스트
tomcat connecter
# ServerName nerv-team.co.kr
JkWorkersFile /etc/apache2/mods-enabled/workers.properties
JkShmFile /var/log/apache2/mod_jk.shm
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkLogStampFormat “[%a %b %d %H:%M:%S %Y] ”
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat “%w %V %T”
# Apache Tomcat에서 처리할 URL 패턴을 등록
JkMount /*.jsp worker1
JkMount /servlet/* worker1
JkMount /*.do worker1
JkMount /*.action worker1
workers.tomcat_home=/usr/share/tomcat6
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/worker.list=worker1
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=60
# www.nerv-team.co.kr
<VirtualHost *:80>
ServerAdmin antop@nerv-team.co.kr
ServerName www.nerv-team.co.kr
ServerAlias nerv-team.co.kr
Include /etc/apache2/mods-enabled/jk_mount.conf
…
</VirtualHost>
<Context path=”/” docBase=”/var/www” reloadable=”true” />
</Host>
tomcat6 재시작
apache2 재시작 (tomcat6 부터 재시작 한다)
테스트