Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
tar
tomcatd.tar 10.2 kB 1 17-May-2021 01:15 박동재

This page (revision-1) was last changed on 17-May-2021 01:15 by UnknownAuthor  

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 224 lines
[{TableOfContents}]
!!!Tomcat 6.0.18
*설치
{{{
wget http://mirror.apache.or.kr/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
tar -xvzf apache-tomcat-6.0.18.tar.gz
mv apache-tomcat-6.0.18 /usr/local/
ln -s /usr/local/apache-tomcat-6.0.18 /usr/local/tomcat
}}}
*Path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$CATALINA_HOME/bin
export CATALINA_HOME
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
*manager user추가
{{{
vi /usr/local/tomcat/conf/tomcat-users.xml
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<role rolename="manager"/>
<user username="tomcat" password="qwe123" roles="manager"/>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
!!!Tomcat 5.5.x
*설치
{{{
tar -xvzf apache-tomcat-5.5.x.tar.gz
mv apache-tomcat-5.5.x /usr/local/
ln -s /usr/local/apache-tomcat-5.5.x /usr/local/tomcat
}}}
*Path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$CATALINA_HOME/bin
export CATALINA_HOME
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
*manager user추가
{{{
vi /usr/local/tomcat/conf/tomcat-users.xml
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<user username="admin" password="qew123" roles="admin, manager"/>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
*자동 실행
{{{
wget http://wiki.nettem.co.kr/attach/FedoraCore6TomcatInstall/tomcatd.tar
tar -xvf tomcatd.tar
mv tomcatd /etc/init.d
chkconfig --add tomcatd
chkconfig --level 35
tomcatd on
chkconfig --list tomcatd
}}}
!!!Tomcat 4.1.24
*설치
{{{
tar -xvzf jakarta-tomcat-4.1.24-LE-jdk14
.tar.gz
mv jakarta-tomcat-4.1.24-LE-jdk14 /usr/local/
ln -s /usr/local/jakarta-tomcat-4.1.24-LE-jdk14 /usr/local/tomcat
}}}
*Path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$CATALINA_HOME/bin
export CATALINA_HOME
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
*manager 설정
{{{
vi /usr/local/tomcat/conf/tomcat-users.xml
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<user username="admin" password="qew123" roles="admin, manager"/>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
!!!자동 실행
{{{
vi /etc/init.d/tomcatd
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#!/bin/sh
#
# Startup script for Tomcat
#
# chkconfig: - 85 15
# description: Start Tomat
#
# processname: tomcat
#
# Source function library.
. /etc/rc.d/init.d/functions
export JAVA_HOME=/usr/local/java
export CATALINA_HOME=/usr/local/tomcat
export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export LANG="ko_KR.eucKR"
# See how we were called.
case "$1" in
start)
echo -n "Starting tomcat: "
daemon $CATALINA_HOME/bin/startup.sh
touch /var/lock/subsys/tomcat
echo
;;
stop)
echo -n "Shutting down tomcat: "
daemon $CATALINA_HOME/bin/shutdown.sh
rm -rf /var/lock/subsys/tomcat
echo
;;
restart)
$0 stop
sleep 10
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
chmod 755 /etc/init.d/tomcatd
chkconfig --add tomcatd
chkconfig --level 35 tomcatd on
}}}
!!!아파치와의 연동 (mod_jk)
*[참고 사이트|http://kldp.org/node/71058]
!다운로드 & 설치
{{{
wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/tomcat-connectors-1.2.21-src.tar.gz
tar -xvzf tomcat-connectors-1.2.21-src.tar.gz
cd tomcat-connectors-1.2.21-src/native
./configure --with-apxs=/usr/local/apache2/bin/apxs
make && make install
}}}
!make install 수행후 mod_jk.so파일이 생성되지 않을시
*출처 [★here is poporu.net! | http://poporu.net/bbs/bbs/board.php?bo_table=bbs&wr_id=25&sfl=&stx=&sst=wr_hit&sod=desc&sop=and&page=1]
*모듈 설치시 에러가 났을경우(이것은 apache에서 제공하는 libtool의 bug때문)
*/usr/local/apache2/build/libtool 을 백업하고 /usr/bin/libtool을 그 디렉토리로 복사한다.(소스를 지우고 다시 컴파일 해야 함)
!아파치 환경 설정
{{{
vi /usr/local/apache2/conf/httpd.conf
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
LoadModule jk_module modules/mod_jk.so
<IfModule mod_jk.c>
JkWorkersFile /usr/local/apache2/conf/workers.properties
</IfModule>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
vi /usr/local/apache2/conf/workers.properties
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
!apache 컨테이너 설정
{{{
vi /usr/local/apache2/conf/httpd.conf
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# Static files in the examples webapp are served by apache
Alias /manager /usr/local/tomcat/server/webapps/manager
# The following line prohibits users from directly access WEB-INF
<Location "/manager/WEB-INF/">
AllowOverride None
deny from all
</Location>
# All JSP will goes to worker1
JkMount /manager/* ajp13
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}
Version Date Modified Size Author Changes ... Change note
17-May-2021 01:15 5.33 kB UnknownAuthor
« This page (revision-) was last changed on 17-May-2021 01:15 by UnknownAuthor