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 - 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
- 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
To Deploy Webapps on the external tomcat, check next Blog



