문서의 이전 판입니다!
apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre
apt-get install libtomcat6-java tomcat6 tomcat6-admin \ tomcat6-common tomcat6-docs tomcat6-examples tomcat6-user
apt-get install apache2 apache2-mpm-prefork apache2-utils apache2.2-bin \ apache2.2-common libapache2-mod-jk libapache2-mod-php5
JDK 1.6 설치경로 (JAVA_HOME) | /usr/lib/jvm/java-6-sun |
---|---|
TOMCAT 구동 Script | /etc/init.d/tomcat6 |
TCOMAT 설치경로 (TCOMAT_HOME) | /var/lib/tomcat6 |
TOMCAT Server 설정파일 | /etc/tomcat6/server.xml |
TOMCAT Manager 설정파일 | /etc/tomcat6/tomcat-users.xml |
Context 설정파일 | /[SERVICE DIRECTORY]/META-INF |
APACHE mod_jk 모듈설정 | /etc/apache2/mod-enabled/jk.load |
APACHE workers 파일위치정보 | /etc/apache2/mod-enabled/jk.conf |
APACHE TOMCAT SERVER(workers) 설정정보파일 | /etc/libapache2-mod-jk/workers.properties |
APACHE Virtual HOST 설정 디렉토리 | /etc/apache2/sites-enabled/ |
Server > Service > Engine > Host
... </Host> <!-- starlits.adminschool.net --> <Host name="wolf.adminschool.net" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false" debug="1" > <Context path="" docBase="/home/starlits/html" reloadable="true"> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" /> </Context> </Host>
# /etc/init.d/tomcat6 restart
grep -v "^#" /etc/libapache2-mod-jk/workers.properties
workers.tomcat_home=/usr/share/tomcat6 workers.java_home=/usr/lib/jvm/default-java ps=/ worker.list=ajp13_worker worker.ajp13_worker.port=8009 worker.ajp13_worker.host=localhost worker.ajp13_worker.type=ajp13 worker.ajp13_worker.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=ajp13_worker
grep -v "^#" /etc/apache2/mods-enabled/jk.conf
JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkMount /*.jsp ajp13_worker JkMount /*/servlet/ ajp13_worker