logo

Are you need IT Support Engineer? Free Consultant

How to use External Tomcat on Linux

  • By sujay
  • 28/05/2026
  • 11 Views

Download the Apache Tomcat

Transfer the downloaded Tomcat to Linux Server.

  • You can transfer the Tomcat to Linux Server using Winscp or any other file transfer tool.

Extracting the file on the Linux Server:

  • Run Command to extract the downloaded file: 
    tar xzvf apache-tomcat-9.0.117.tar.gz

    Rajdeep_Marathe_3-1776676502592.Png

     

    Rajdeep_Marathe_2-1776676438700.Png

  • Give proper rights on the extracted file – using chmod

Configuration of the Tomcat on Linux server:

  • Create a file name: setenv.sh under tomcat/bin folder.
  • Add below contents in the file:

    CATALINA_PID=”/sap_bobj/tomcat/bin/pid.txt”
    export CATALINA_PID
    JRE_HOME=”//sap_bobj/enterprise_xi40/linux_x64/sapjvm/”
    export JRE_HOME
    # set the JAVA_OPTS for tomcat
    JAVA_OPTS=”-d64 -Dfile.encoding=UTF-8 -Dbobj.enterprise.home=${BOBJEDIR}enterprise_xi40 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=false -Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Xloggc:${BOBJEDIR}tomcat/logs/tomcat.gc.log -XX:+PrintGCDetails -XX:+UseParallelOldGC”
    export JAVA_OPTS

  • Start the tomcat using command ./startup.sh from tomcat/bin

    Rajdeep_Marathe_0-1776682170294.Png

     

  • Access the tomcat home page and test:

    http:// 
    Default Http connector port of tomcat is 8080, you can change it from the server.xml under tomcat/conf

    Rajdeep_Marathe_1-1776682979448.Png

     

 

To Deploy Webapps on the external tomcat, check next Blog

 

 

 

 

 

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *