Changes

From SME Server
Jump to navigationJump to search
295 bytes added ,  17:44, 13 March 2007
no edit summary
Line 1: Line 1: −
Tomcat Installation and configuration
+
===Tomcat Installation and configuration===
    
Extracted from MasterSleepy  
 
Extracted from MasterSleepy  
 
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=43
 
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=43
   −
*Download java jdk and upload it to your sme server
+
*<b>Download java jdk and upload it to your sme server</b>
    
Go to java.sun.com and download jdk
 
Go to java.sun.com and download jdk
Line 10: Line 10:  
ATTENTION: adapt all document jdk filename depending witch file you download
 
ATTENTION: adapt all document jdk filename depending witch file you download
   −
*Install Java jdk
+
*<b>Install Java jdk</b>
 
  chmod a+x jdk-1_5_0_06-linux-i586-rpm.bin
 
  chmod a+x jdk-1_5_0_06-linux-i586-rpm.bin
 
  ./jdk-1_5_0_06-linux-i586-rpm.bin
 
  ./jdk-1_5_0_06-linux-i586-rpm.bin
Line 16: Line 16:  
After executing bin file, you can remove both file jdk-1_5_0_06-linux-i586-rpm.bin and jdk-1_5_0_06-linux-i586.rpm
 
After executing bin file, you can remove both file jdk-1_5_0_06-linux-i586-rpm.bin and jdk-1_5_0_06-linux-i586.rpm
   −
*Download tomcat last version
+
*<b>Download tomcat last version</b>
    
Go to Tomcat download website.
 
Go to Tomcat download website.
Line 24: Line 24:  
  wget http://apache.root.lu/tomcat/tomcat-5/v5.5.17/bin/apache-tomcat-5.5.17-admin.tar.gz
 
  wget http://apache.root.lu/tomcat/tomcat-5/v5.5.17/bin/apache-tomcat-5.5.17-admin.tar.gz
   −
*Unpack archive
+
*<b>Unpack archive</b>
    
Unzip and move it
 
Unzip and move it
Line 33: Line 33:  
  ln -s apache-tomcat-5.5.17 tomcat
 
  ln -s apache-tomcat-5.5.17 tomcat
   −
*Create user and group
+
*<b>Create user and group</b>
 
  groupadd tomcat
 
  groupadd tomcat
 
  useradd -g tomcat -d /opt/tomcat tomcat
 
  useradd -g tomcat -d /opt/tomcat tomcat
Line 39: Line 39:  
  chmod 770 /opt/tomcat/
 
  chmod 770 /opt/tomcat/
   −
*Create statup script
+
*<b>Create statup script</b>
 
Edit /etc/rc.d/init.d/tomcat with your favorite text editor, it should contain the following :
 
Edit /etc/rc.d/init.d/tomcat with your favorite text editor, it should contain the following :
   Line 75: Line 75:  
  exit 0
 
  exit 0
   −
*Make startup script runable and make tomcat start automatically at boot
+
*<b>Make startup script runable and make tomcat start automatically at boot</b>
 
  chmod 755 /etc/rc.d/init.d/tomcat
 
  chmod 755 /etc/rc.d/init.d/tomcat
 
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc7.d/S98tomcat
 
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc7.d/S98tomcat
Line 82: Line 82:  
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc1.d/K02tomcat
 
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc1.d/K02tomcat
 
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc0.d/K02tomcat
 
  ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc0.d/K02tomcat
 +
 +
End MasterSleepy HOWTO
 +
 +
If you want to access Tomcat outside your local network, you must open port 8080 (or whatever you configured).
 +
 +
config set tomcat service access public status enabled TCPPort 8080
 +
signal-event remoteaccess-update
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
985

edits

Navigation menu