Professional Documents
Culture Documents
How To Install Tomcat Apache in Solaris 10
How To Install Tomcat Apache in Solaris 10
How To Install Tomcat Apache in Solaris 10
To uninstall the Solaris packages for JDK 5.0, remove them by running:
On all processors:
# pkgrm SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo
# pkgadd -d /path/to/directoryOfPackages
or u can use jdk.sh and it will generate directory contain jdk files installation
useradd --> tomcat and edit .profile and set these parameters
export JAVA_HOME=
export CATALINA_HOME
run bin/startup.sh
to stop bin/shutdown.sh
run http//localhost:8080/hello.jsp
date.jsp
cp file in $CATALINA_HOME/webapps/ROOT
vi $CATALINA_HOME/server/webapps/manager/WEB-INF/web.xml
vi $CATALINA_HOME/conf/tomcat-users.xml
<user username="tomcat" password="tomcat" roles="tomcat,pass_to"/>
to configure log
vi log4j.properties in $CATALINA_HOME/common/classes/log4j.properties
log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
cp /Desktop/log4j-1.2.15.jar /usr/local/tomcat/common/lib/
cp /Desktop/commons-logging-1.1.1.jar /usr/local/tomcat/common/lib/
groupadd tomcat
usermod -g tomcat tomcat
chown -R tomcat:tomcat /usr/local/tomcat
java options
About heap size - it's generally a good idea to set the JVM's max heap size to at least 512, and
no matter what the max is, the initial heap size should be set to the same value.
That's a description of the heap, but what about this other setting set with -XX:MaxPermSize?
Turns out this sets the size for something called the "Permanent Generation". A good definition
for the Permanent Generation is found in the Sun article Frequently Asked Questions about
Garbage Collection in the HotspotTM JavaTM Virtual Machine:
The permanent generation is used to hold reflective of the VM itself such as class objects and
method objects. These reflective objects are allocated directly into the permanent generation,
and it is sized independently from the other generations. Generally, sizing of this generation
can be ignored because the default size is adequate. However, programs that load many
classes may need a larger permanent generation.
So the permanent generation contains information about the objects in the heap. Ah-ha! Now
we can start to understand how these two numbers are related to each other. The heap stores
the objects, and the permanent generation keeps track of information about the objects.
Consequently, the more objects there are in the heap, the more information there is to be
tracked about them, and the larger the permanent generation needs to be.
install apache
cd httpd-2.2.9/
# Build and install apr
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install
# Configure httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
authentication