|
# chmod +x j2sdk-1_3_1_02-linux-i386.bin # ./2sdk-1_3_1_02-linux-i386.bin
$ cd /usr/local $ tar -xvzf jakarta-tomcat-4.1.8.tar.gz $ cd jakarta-tomcat-4.1.8 $ cd bin $ rm *.bat # echo export JAVA_HOME=/usr/lib/java/ >> /etc/profile # . /etc/profile
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="tomcat"/> <role rolename="role1"/> <user username="admin" password="secret" roles="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="role1" password="tomcat" roles="role1"/> <user username="both" password="tomcat" roles="tomcat,role1"/> </tomcat-users>
# /usr/local/apache/jakarta-tomcat-4.1.8/bin/startup.sh
$ tar -xvzf jakarta-tomcat-connectors-4.1.18-src.tar.gz $ cd jakarta-tomcat-connectors-4.1.18-src/jk/native $ ./buildconf $ ./configure --with-apxs=/usr/local/apache/bin/apxs $ make # make install
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.18 # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=/usr/lib/java2 # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=/ # The workers that your plugins should create and work with # worker.list=worker1 #------ DEFAULT ajp13 WORKER DEFINITION ------------------------------ #--------------------------------------------------------------------- # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 #------ CLASSPATH DEFINITION ----------------------------------------- #--------------------------------------------------------------------- # Additional class path components. # worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar # The JVM that we are about to use # # Unix - Sun VM or blackdown worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)¬ classic$(ps)libjvm.so # Setting the place for the stdout and stderr of tomcat # worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" JkMount /examples/servlet/* worker1 JkMount /examples/*.jsp worker1
Ortam Değişkenleri | |
---|---|
Eğer Tomcat başlamasında hata oluşursa ve/veya servletler başlatılamıyorsa CLASSPATH değişkeninde gerekli sınıflar yok demektir.
|
|