Configuration of Jakarta-Tomcat-4.1.30.tar.gz
Packages required for tomcat-4.1.30.tar.gz:
jakarta-tomcat-4.1.30.tar.gz j2sdk-1_4_2_19-linux-i586.bin
Step1: Extract the packages in at /usr/local directory
tar -zxvf j2sdk-1_4_2_19-linux-i586.bin
tar -zxvf jakarta-tomcat-4.1.30.tar.gz
Step2: Now create a soft link to tomcat directory
ln -s jakarta-tomcat-4.1.30
tomcat
Step3: Now edit the file catalina.sh at /usr/local/tomcat/bin/
vi /usr/local/tomcat/bin/catalina.sh
Add the following lines below the comment lines
JAVA_HOME=/usr/local/java/
JAVA_OPTS="-Djava.awt.headless=true"
export JAVA_HOME JAVA_OPTS
Step4: Now you can run tomcat from the root using /usr/local/tomcat/bin/startup.sh
/usr/local/tomcat/bin/shutdown.sh
Step5: Now edit the catalina.policy at /usr/local/tomcat/conf/catalina.policy vi
/usr/local/tomcat/conf/catalina.policy
Add the following lines after the below line permission
java.lang.RuntimePermission getAttribute
grant
{ permission java.security.AllPermission; }
Step6: For running tomcat from the user end:
Create a user whom you want to give permission to run tomcat e.g test
useradd test
passwd test
Step7: Now change the ownership of tomcat directory to user test
chown -R test:test /usr/local/tomcat
Step8: Login through user test
Create launcher for tomcat startup
OR
execute /usr/local/tomcat/bin/startup.sh from terminal
Create launcher for tomcat shutdown
OR
execute /usr/local/tomcat/bin/shutdown.sh from terminal
|